No description
Find a file
2016-01-29 11:33:00 +01:00
bin LISTEN based addresses applied some address options to the listening FD instead of the connected FD 2014-03-21 09:44:16 +01:00
Config V1.7.0.0: platform config files 2008-10-15 22:49:27 +02:00
doc version 2.0.0-b8 - CVE-2015-1379, 1.7.3.0 fixes, v2 fixes 2015-04-06 18:49:59 +02:00
BUGREPORTS socat V1.6.0.0 (initial GIT commit) 2008-01-27 13:00:08 +01:00
CHANGES version 2.0.0-b9 2016-01-29 11:33:00 +01:00
compat.h off_t may be long long; more corrections for non Linux; configure.ac 2015-04-03 17:55:37 +02:00
config.h.in Port to Openindiana 2015-04-02 17:55:26 +02:00
configure.ac off_t may be long long; more corrections for non Linux; configure.ac 2015-04-03 17:55:37 +02:00
configure.in Port to Openindiana 2015-04-02 17:55:26 +02:00
COPYING libwrap only logs to syslog; actual COPYING file 2014-03-21 08:56:08 +01:00
COPYING.OpenSSL socat V1.6.0.0 (initial GIT commit) 2008-01-27 13:00:08 +01:00
daemon.sh replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
dalan.c Support for NetBSD 5.1 2015-04-02 17:14:05 +02:00
dalan.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
DEVELOPMENT Made code async-signal-safe 2015-03-31 17:30:28 +02:00
error.c Dual type addresses terminated when they were idle for EOF timeout time 2015-04-03 15:38:18 +02:00
error.h Made code async-signal-safe 2015-03-31 17:30:28 +02:00
EXAMPLES version 2.0.0-b3 2009-04-03 17:17:10 +02:00
FAQ merged 1.6.0.1 2008-10-17 22:49:55 +02:00
fdname.c SSLv2 only when available; fixed sa_family_t compile error; minor cleanup 2014-03-16 22:10:20 +01:00
filan.c Red Hat issue 1020203: configure checks fail with some compilers 2014-03-26 16:10:41 +01:00
filan.h merged features ioctl, setsockopt, generic-socket 2008-09-22 22:52:03 +02:00
filan_main.c Corrected help text for filan -L 2015-04-02 16:36:39 +02:00
FILES socat V1.6.0.0 (initial GIT commit) 2008-01-27 13:00:08 +01:00
ftp.sh merged 1.6.0.1 2008-10-17 22:49:55 +02:00
gatherinfo.sh replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
hostan.c Corrected some configure --disable 2015-04-01 15:48:28 +02:00
hostan.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
install-sh socat V1.6.0.0 (initial GIT commit) 2008-01-27 13:00:08 +01:00
mail.sh version 2.0.0-b3 2009-04-03 17:17:10 +02:00
Makefile.in off_t may be long long; more corrections for non Linux; configure.ac 2015-04-03 17:55:37 +02:00
mytypes.h Prevent multiple definition of bool,Min(),Max() (MacOS X) 2015-04-02 17:09:31 +02:00
nestlex.c socat security advisory 8: stack overflow in nestlex() 2016-01-29 11:32:52 +01:00
nestlex.h socat security advisory 8: stack overflow in nestlex() 2016-01-29 11:32:52 +01:00
PORTING socat V1.6.0.0 (initial GIT commit) 2008-01-27 13:00:08 +01:00
procan-cdefs.c struct cmsghdr.cmsg is system dependend; more print format corrections 2015-03-31 16:41:17 +02:00
procan.c Increased field width for ulimit values from 16 to 24 digits 2014-03-21 13:04:52 +01:00
procan.h procan prints C defines important for socat 2008-01-31 21:41:13 +01:00
procan_main.c Made code async-signal-safe 2015-03-31 17:30:28 +02:00
proxy.sh replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
proxyecho.sh added inter address exec and system modules 2009-04-03 11:30:01 +02:00
readline-test.sh ported generic socket to *BSD; minor improvements 2008-09-20 17:17:27 +02:00
readline.sh replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
README version 2.0.0-b8 - CVE-2015-1379, 1.7.3.0 fixes, v2 fixes 2015-04-06 18:49:59 +02:00
README.FIPS socat V1.6.0.0 (initial GIT commit) 2008-01-27 13:00:08 +01:00
SECURITY socat V1.6.0.0 (initial GIT commit) 2008-01-27 13:00:08 +01:00
snprinterr.c Made code async-signal-safe 2015-03-31 17:30:28 +02:00
snprinterr.h Made code async-signal-safe 2015-03-31 17:30:28 +02:00
socat.c Debian Bug 764251: Set the build timestamp to a deterministic time 2015-04-02 17:02:47 +02:00
socat.spec version 2.0.0-b9 2016-01-29 11:33:00 +01:00
socat_buildscript_for_android.sh Android build script with pty code 2014-03-26 16:20:02 +01:00
socks4a-echo.sh replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
socks4echo.sh replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
sslcls.c Added TLS methods support 2015-04-02 16:25:51 +02:00
sslcls.h Added TLS methods support 2015-04-02 16:25:51 +02:00
sycls.c Made code async-signal-safe 2015-03-31 17:30:28 +02:00
sycls.h struct cmsghdr.cmsg is system dependend; more print format corrections 2015-03-31 16:41:17 +02:00
sysincludes.h Support for NetBSD 5.1 2015-04-02 17:14:05 +02:00
sysutils.c Check OpenSSL peers commonName+subjectAltName; new option openssl-commonname 2015-04-02 15:45:04 +02:00
sysutils.h Check OpenSSL peers commonName+subjectAltName; new option openssl-commonname 2015-04-02 15:45:04 +02:00
test.sh socat security advisory 8: stack overflow in nestlex() 2016-01-29 11:32:52 +01:00
utils.c Check OpenSSL peers commonName+subjectAltName; new option openssl-commonname 2015-04-02 15:45:04 +02:00
utils.h Red Hat issue 1020203: configure checks fail with some compilers 2014-03-26 16:10:41 +01:00
VERSION version 2.0.0-b9 2016-01-29 11:33:00 +01:00
vsnprintf_r.c Made code async-signal-safe 2015-03-31 17:30:28 +02:00
vsnprintf_r.h Made code async-signal-safe 2015-03-31 17:30:28 +02:00
xio-ascii.c Red Hat issue 1021958: fixed a bug with faulty buffer/data length calculation in xio-ascii.c:_xiodump() 2014-03-22 20:07:20 +01:00
xio-ascii.h merged features ancillary, envvar 2008-09-22 22:17:55 +02:00
xio-creat.c added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-creat.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-exec.c SSLv2 only when available; fixed sa_family_t compile error; minor cleanup 2014-03-16 22:10:20 +01:00
xio-exec.h added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-ext2.c replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xio-ext2.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xio-fd.c Corrected implementation of shut-none, shut-down, shut-close 2015-04-03 15:31:47 +02:00
xio-fd.h version 2.0.0-b3 2009-04-03 17:17:10 +02:00
xio-fdnum.c Address FD was not read from when used bidirectionally 2015-04-03 15:29:13 +02:00
xio-fdnum.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-file.c added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-file.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-gopen.c fixed a bug where socat might crash when connecting to a unix domain socket using address GOPEN 2014-03-16 22:06:11 +01:00
xio-gopen.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-interface.c added struct sockaddr_ll to union sockaddr_union to avoid "strict aliasing" 2014-03-16 22:03:42 +01:00
xio-interface.h merged 1.7.0.0; fixed a few minor bugs 2008-10-22 02:33:23 +02:00
xio-ip.c Red Hat issue: socat 1.7.2.4 build failure missing linux/errqueue.h 2015-04-02 17:21:45 +02:00
xio-ip.h merged features ioctl, setsockopt, generic-socket 2008-09-22 22:52:03 +02:00
xio-ip4.c Red Hat issue 1022063: out-of-range shifts on net mask bits 2014-03-26 13:13:12 +01:00
xio-ip4.h merged features ioctl, setsockopt, generic-socket 2008-09-22 22:52:03 +02:00
xio-ip6.c Red Hat issue 1020203: configure checks fail with some compilers 2014-03-26 16:10:41 +01:00
xio-ip6.h merged features ioctl, setsockopt, generic-socket 2008-09-22 22:52:03 +02:00
xio-ipapp.c Fixed memory leaks 2015-04-02 16:34:48 +02:00
xio-ipapp.h reworked so-type, so-prototype 2008-09-20 23:47:06 +02:00
xio-listen.c off_t may be long long; more corrections for non Linux; configure.ac 2015-04-03 17:55:37 +02:00
xio-listen.h new option max-children that limits the number of concurrent child processes 2014-03-16 22:09:15 +01:00
xio-named.c some file system based addresses failed to apply file options 2014-03-26 14:02:42 +01:00
xio-named.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xio-nop.c added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-nop.h version 2.0.0-b1 2008-02-17 14:59:16 +01:00
xio-openssl.c socat security advisory 7, MSVR-1499: created new 2048bit DH modulus 2016-01-29 11:32:36 +01:00
xio-openssl.h Check OpenSSL peers commonName+subjectAltName; new option openssl-commonname 2015-04-02 15:45:04 +02:00
xio-pipe.c some file system based addresses failed to apply file options 2014-03-26 14:02:42 +01:00
xio-pipe.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-process.c struct cmsghdr.cmsg is system dependend; more print format corrections 2015-03-31 16:41:17 +02:00
xio-process.h Red Hat issue 1021429: getgroupent fails with large number of groups 2014-03-26 14:38:23 +01:00
xio-progcall.c Print error on useless fdout,fdin options 2015-04-02 16:47:22 +02:00
xio-progcall.h added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-proxy.c struct cmsghdr.cmsg is system dependend; more print format corrections 2015-03-31 16:41:17 +02:00
xio-proxy.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-pty.c Red Hat issue 1020203: configure checks fail with some compilers 2014-03-26 16:10:41 +01:00
xio-pty.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-rawip.c added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-rawip.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-readline.c Red Hat issue 1022048: strncpy hardening 2014-03-26 12:48:27 +01:00
xio-readline.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-sctp.c merged 1.7.0.0; fixed a few minor bugs 2008-10-22 02:33:23 +02:00
xio-sctp.h merged 1.7.0.0; fixed a few minor bugs 2008-10-22 02:33:23 +02:00
xio-socket.c Check OpenSSL peers commonName+subjectAltName; new option openssl-commonname 2015-04-02 15:45:04 +02:00
xio-socket.h version 2.0.0-b3 2009-04-03 17:17:10 +02:00
xio-socks.c struct cmsghdr.cmsg is system dependend; more print format corrections 2015-03-31 16:41:17 +02:00
xio-socks.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-socks5.c Fixed use of old rfd1 component 2015-04-03 15:17:11 +02:00
xio-socks5.h version 2.0.0-b1 2008-02-17 14:59:16 +01:00
xio-stdio.c added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-stdio.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-streams.c new address options i-pop-all, i-push 2008-09-26 16:58:08 +02:00
xio-streams.h new address options i-pop-all, i-push 2008-09-26 16:58:08 +02:00
xio-system.c Address SYSTEM, when terminating, shutted down its parent addresses 2015-04-01 14:39:54 +02:00
xio-system.h added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-tcp.c merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-tcp.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-tcpwrap.c added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-tcpwrap.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xio-termios.c Added option rawer for pty 2015-04-02 16:55:02 +02:00
xio-termios.h Function cfmakeraw() is simulated when missing 2015-04-02 17:45:22 +02:00
xio-test.c added inter address exec and system modules 2009-04-03 11:30:01 +02:00
xio-test.h version 2.0.0-b1 2008-02-17 14:59:16 +01:00
xio-tun.c Red Hat issue 1022048: strncpy hardening 2014-03-26 12:48:27 +01:00
xio-tun.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-udp.c fixed bidirectional UDP-LISTEN error 2015-04-03 15:12:47 +02:00
xio-udp.h merged 1.6.0.1 2008-10-17 22:49:55 +02:00
xio-unix.c Fixed bind with abstract unix domain sockets (Linux) 2015-03-31 18:21:45 +02:00
xio-unix.h merged 1.7.0.0; fixed a few minor bugs 2008-10-22 02:33:23 +02:00
xio.h version 2.0.0-b8 - CVE-2015-1379, 1.7.3.0 fixes, v2 fixes 2015-04-06 18:49:59 +02:00
xioclose.c fixed a stack overflow vulnerability with long command line args 2010-10-04 21:04:45 +02:00
xioconfig.h Red Hat issue 1020203: configure checks fail with some compilers 2014-03-26 16:10:41 +01:00
xiodiag.c replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xiodiag.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xioengine.c Dual type addresses terminated when they were idle for EOF timeout time 2015-04-03 15:38:18 +02:00
xioexit.c Made code async-signal-safe 2015-03-31 17:30:28 +02:00
xiohelp.c version 2.0.0-b3 2009-04-03 17:17:10 +02:00
xiohelp.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xioinitialize.c typos in docu and source 2014-03-16 22:10:19 +01:00
xiolayer.c on some 64bit systems a compiler warning "cast from pointer to integer of different size" was issued on some option definitions 2014-03-16 22:06:11 +01:00
xiolayer.h new address option "escape" allows to break a socat instance 2008-09-20 23:01:10 +02:00
xiolockfile.c handle partial write()'s without data loss 2014-03-16 22:06:57 +01:00
xiolockfile.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xiomodes.h merged 1.7.0.0; fixed a few minor bugs 2008-10-22 02:33:23 +02:00
xioopen.c fixes: ioctl-intp, -T hang, mixed directions, socat_open sprintf overflow 2015-04-03 15:12:38 +02:00
xioopen.h merged 1.7.0.0; fixed a few minor bugs 2008-10-22 02:33:23 +02:00
xioopts.c Fixed use of old rfd1 component 2015-04-03 15:17:11 +02:00
xioopts.h Added option rawer for pty 2015-04-02 16:55:02 +02:00
xioparam.c Red Hat issue 1022048: strncpy hardening 2014-03-26 12:48:27 +01:00
xioread.c added struct sockaddr_ll to union sockaddr_union to avoid "strict aliasing" 2014-03-16 22:03:42 +01:00
xioshutdown.c off_t may be long long; more corrections for non Linux; configure.ac 2015-04-03 17:55:37 +02:00
xiosigchld.c Made code async-signal-safe 2015-03-31 17:30:28 +02:00
xiosigchld.h fixed sporadic data loss on pid reuse 2014-03-16 22:06:57 +01:00
xiosignal.c Made code async-signal-safe 2015-03-31 17:30:28 +02:00
xiosocketpair.c Red Hat issue 1020203: configure checks fail with some compilers 2014-03-26 16:10:41 +01:00
xiostatic.h version 2.0.0-b1 2008-02-17 14:59:16 +01:00
xiosysincludes.h replaced RCS ID's by source file names 2008-01-28 22:37:16 +01:00
xiotransfer.c option -x prints info about packet 2014-03-16 22:06:12 +01:00
xiowrite.c handle partial write()'s without data loss 2014-03-16 22:06:57 +01:00

about
-----

socat is a relay for bidirectional data transfer between two independent data
channels. Each of these data channels may be a file, pipe, device (serial line
etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU
line editor (readline), a program, or a combination of two of these. 
These modes include generation of "listening" sockets, named pipes, and pseudo
terminals.

socat can be used, e.g., as TCP port forwarder (one-shot or daemon), as an
external socksifier, for attacking weak firewalls, as a shell interface to UNIX
sockets, IP6 relay, for redirecting TCP oriented programs to a serial line, to
logically connect serial lines on different computers, or to establish a
relatively secure environment (su and  chroot) for running client or server
shell scripts with network connections. 

Many options are available to refine socats behaviour:
terminal parameters, open() options, file permissions, file and process owners,
basic socket options like bind address, advanced socket options like IP source
routing, linger, TTL, TOS (type of service), or TCP performance tuning.

More capabilities, like daemon mode with forking, client address check,
"tail -f" mode, some stream data processing (line terminator conversion),
choosing sockets, pipes, or ptys for interprocess communication, debug and
trace options, logging to syslog, stderr or file, and last but not least
precise error messages make it a versatile tool for many different purposes.

In fact, many of these features already exist in specialized tools; but until
now, there does not seem to exists another tool that provides such a generic,
flexible, simple and almost comprehensive (UNIX) byte stream connector.


packages
--------

before bothering with compilers, dependencies and include files, you might
try to get a binary distribution that matches your platform. Have a look at 
the projects home page for actual information regarding socat binary 
distributions.


platforms
---------

socat 1.7.0 was compiled and more or less successfully tested under the
following operating systems:

Debian lenny/sid on x86, kernel 2.6.24
FreeBSD 6.1 on x86
NetBSD 4.0  on x86
OpenBSD 4.3 on x86
OpenSolaris 10 on x86 with gcc
Mac OS X 10.5.5 on iMac G5, with libreadline
HP-UX 11.23
AIX 5.3 on 64bit Power4 with gcc
Cygwin 1.5.25 on i686

tests on Tru64 can no longer be performed because HP testdrive has taken down
these hosts.

Some versions of socat have been reported to successfully compile under older
Linux versions back to RedHat 2.1 (kernel 1.2.13, gcc 2.7.0), under AIX 4.1 and
4.3, SunOS 5.7-5.8, FreeBSD 4.2 - 4.9, MacOS X 10.1, Cygwin, Solaris 8 on x86, 
OSR 5.0.6, NetBSD 1.6.1 and 2.0.2, OpenBSD 3.4 and 3.8, Tru64 5.1B, Mac OS X
10.1-10.2, and HP-UX 11

It might well compile and run under other UNIX like operating systems.


install
-------

Get the tarball and extract it:
	gtar xzf socat.tar.gz
	cd socat-2.0.0-b8
	./configure
	make
	su
	make install	# installs socat, filan, and procan in /usr/local/bin

For compiling socat, gcc (or egc) is recommended.
If gcc is not available, the configure script will fail to determine
some features; then you'd better begin with one of the Makefiles and config.h's
from the Config directory.

If you have problems with the OpenSSL library, you can apply the option
"--disable-openssl" to configure.

If you have problems with the readline library or (n)curses, you can apply the
option "--disable-readline" to configure.

If you have problems with the tcp wrappers library, you can apply the option
"--disable-libwrap" to configure.

If you still get errors or a tremendous amount of warnings you can exclude 
the features for system call tracing and file descriptor analyzing by
applying the options "--disable-sycls --disable-filan" to configure.

You still need the functions vsnprintf and snprintf that are in the GNU libc,
but might not be available with some proprietary libc's.

The configure script looks for headers and libraries of openssl, readline, and
tcp wrappers in the OS'es standard places and in the subdirectories include/
and lib/ of the following places: 
   /sw/
   /usr/local/
   /opt/freeware/
   /usr/sfw/
and for openssl also in:
   /usr/local/ssl/
In case of unexpected behaviour it is important to understand that configure
first searches for the appropriate include file and then expects to find the
library in the associated lib directory. That means, when e.g. a OpenSSL
installation resides under /usr/local and there is a symbolic link from
/usr/include/ssl/ssl.h to /usr/local/ssl/include/ssl/ssl.h, configure will find
the /usr/include/... header and will therefore expect libssl in /usr/lib
instead of /usr/local/...

If configure does not find a header file or library but you know where it is,
you can specify additional search locations, e.g.:
   export LIBS="-L$HOME/lib"
   export CPPFLAGS="-I$HOME/include"
before running configure and make.

For other operating systems, if socat does not compile without errors, refer to
the file PORTING.


platform specifics - redhat
---------------------------

Install the following packages before building socat:
  tcp_wrappers-devel
  readline-devel
  openssl-devel

On RedHat Linux 9.0, including openssl/ssl.h might fail due to problems with
the krb5-devel package. configure reacts with disabling openssl integration. 
To solve this issue, help cpp to find the krb5.h include file:
CPPFLAGS="-I/usr/kerberos/include" ./configure


platform specifics - aix
------------------------

The flock() prototype is not available but the function is. Thus, to enable the
socat flock options, run configure and then change in config.h the line 
/* #undef HAVE_FLOCK */
to
#define HAVE_FLOCK 1
and continue the build process.

When using the OpenSSL rpm provided by IBM, configure might need the 
environment variable setting:
LIBS="-L/opt/freeware/lib"

When using the OpenSSL bundle provided by IBM, egd needs to be installed too
to get enough entropy.

socat compiles not only with gcc, but also with xlc. Just adapt the Makefile:
replace gcc by /usr/vac/bin/xlc and remove gcc specific options 
"-Wall -Wno-parentheses".

When linking with the OpenSSL library provided by IBM, errors may occur:
ld: 0711-317 ERROR: Undefined symbol: .__umoddi3
In this case, you need to link with libgcc or compile libcrypt yourself using
xlc, or disable SSL (in config.h, undefine WITH_OPENSSL and recompile)

The score of test.sh can be improved by uncommenting MISCDELAY=1 in this
script.


platform specifics - solaris
----------------------------

If libreadline or libssl are in a directory not searched by the loader per
default, e.g. /opt/sfw/lib, you must add this directory to $LD_LIBRARY_PATH,
for running both configure and the socat executables, e.g.:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sfw/lib

For some shell scripts, it is preferable to have /usr/xpg4/bin at a prominent
position in $PATH.

With the default compiler define _GNU_SOURCE, the CMSG_* macros are not
available, and therefore ancillary messages cannot be used. To enable these try
the following:
After running ./configure, edit Makefile and replace "-D_GNU_SOURCE" with
"-D_XPG4_2 -D__EXTENSIONS__" and run make


platform specifics - hp-ux
--------------------------

Ancillary messages cannot be compiled in with socat: both struct msghdr and
struct cmsghdr are required. Compiling with -D_XOPEN_SOURCE_EXTENDED provides
struct msghdr but disables struct cmsghdr while -D_OPEN_SOURCE disables struct
msghdr but disables struct cmsghdr. Please contact socat development if you
know a solution.

Shutting down the write channel of a UNIX domain socket does not seem to
trigger an EOF on the peer socket. This makes problems with the exec and
system addresses.

This OS provides the type "long long", but not the strtoll() function to read
data into a long long variable.

UNIX domain sockets are only supported with SOCK_STREAM, not with datagrams
(see man 7 unix).

With UDP sockets it seems to happen that the select() call reports available
data (or EOF) but a subsequent read() call hangs.


platform specifics - tru64
--------------------------

When the use of the readline address fails with an error like:
socat: /sbin/loader: Fatal Error: Reference to unresolvable symbol "tgetent" in ".../libreadline.so.4"
and you still want to use shared libraries, try the following workaround: 
$ make distclean; LIBS="-static" ./configure
remove the "-static" occurrence in Makefile
$ make


documentation
-------------

These files reside in the doc subdirectory:

socat.1 is the man page, socat.html is the HTML based man page. It is actual,
but describes only the more useful options.

xio.help is an older, but more exact description in text form; with socat
version 1.6.0 it is outdated.

doc/socat-openssltunnel.html is a simple tutorial for a private SSL connection.
doc/socat-multicast.html is a short tutorial for multicast and broadcast
communications.
doc/socat-tun shows how to build a virtual network between two hosts.

socat.1 and socat.html can be generated from socat.yo (which is released with
socat 1.6.0.1 and later) using the yodl document language package. Maintenance
of yodl had been discontinued by its author
(http://www.xs4all.nl/~jantien/yodl/) (there seems to be a revival at
http://yodl.sourceforge.net/ though). For socat, the old version 1.31 is used;
an rpm is still distributed with recent OpenSuSE versions (confirmed for
OpenSuSE 10.1 in suse/i586/yodl-1.31.18-1142.i586.rpm). It appears to install
smoothly also under RedHat Linux. After yodl 1.31 installation, the following
correction must be performed in /usr/share/yodl/shared.yo in two places:
< whenhtml(htmlcommand(<!)ARG1+htmlcommand(>)))
> whenhtml(htmlcommand(<!--)ARG1+htmlcommand(-->)))


license
-------

socat is distributed under the terms of the GNU GPLv2;
except for install-sh, which is copyright MIT, with its own license;

In addition, as a special exception, the copyright holder
gives permission to link the code of this program with
any version of the OpenSSL library which is distributed
under a license identical to that listed in the included
COPYING.OpenSSL file, and distribute linked combinations
including the two. You must obey the GNU General Public
License in all respects for all of the code used other
than OpenSSL. If you modify this file, you may extend this
exception to your version of the file, but you are not
obligated to do so. If you do not wish to do so, delete
this exception statement from your version.


    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, version 2 of the License

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


contact
-------

For questions, bug reports, ideas, contributions etc. please contact
socat@dest-unreach.org

For socat source distribution, bug fixes, and latest news see
        http://www.dest-unreach.org/socat/

www.socat.org is an alternate site providing the same contents.

public git repository:
	git://repo.or.cz/socat.git
	http://repo.or.cz/r/socat.git