
Q: What is the clue of socat?

A: socat probably doesn't have any clue. It is more an attempt to smoothly
integrate similar I/O features that are usually handled differently under
UNIX.


Q: What does the prefix XIO mean?

A: XIO means "extended input/output". It is a library/API that provides a
common way for handling files, sockets and other forms of I/O. Its advantage is
that the application may reduce its I/O to open / read+write / close calls,
while the user controls all I/O details (and even basic process properties) by
packing options into the filename string. This is the basic part of socat.


Q: I succeeded to configure and make socat, but "make test" says something
like:
./test.sh: No such file or directory

A: You need a bash shell, and its location must be correctly specified in the
first line of test.sh, e.g. /usr/local/bin/bash instead of /bin/bash.


Q: I succeeded to start the test.sh script, but for many tests it says
"failed". Is my socat build corrupted?

A: Probably your socat program is ok; the tests have been developed on Linux
2.4, and usually they succeed.
But the following OS differences result in errors on non Linux systems:
 * Linux allows to bind a socket to any address of space 127.0.0.0/8, not
   only 127.0.0.1. I built some tests on this feature, but they fail on all
   other systems I know of. 
 * Your OS might have no IP6 implementation
 * PTYs on Solaris do not work currently


Q: When I specify a dual address (two partial addresses linked with "!!") on
the command line, I get some message "event not found", and my shell history
has the line truncated. Not even protecting the '!'s with '\' helps.

A: '!' may be used by your shell as history expansion character. Say "set +H"
and add this line to your (bash) profile.


Q: On Solaris, socat was built successfully, but when started, it gets killed
with something like "ld.so.1: ./socat: fatal: libreadline.so.4: open failed: no
such file or directory"

A: configure found your libreadline, but the runtime loader doesn't. Add
this directory to your LD_LIBRARY_PATH variable, e.g.:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sfw/lib/
and configure and compile socat again.


Q: On Solaris, socat was built successfully, but when started, an assertion
fails: "xioinitialize.c:25: failed assertion `3 << opt_crdly.arg3 == CRDLY'

A: Probably, you set the correct LD_LIBARY_PATH for socat, but you did not
us it for configure, or you did not "make clean" before running configure.
