nomadsr.blogg.se

Socat tutorial book
Socat tutorial book












socat tutorial book

#SOCAT TUTORIAL BOOK PLUS#

Some options are platform dependend, so this output is helpful for checking theĬW-hhh | -? Like -hh, plus a list of all available address option names.ĬW-d Without this option, only fatal and error messages are generated applying this option also prints warning messages. They have nothing to do with so called address options that areĬW-V Print version and available feature information to stdout, and exit.ĬW-h | -? Print a help text to stdout describing command line options and available address types, and exit.ĬW-hh | -? Like -h, plus a list of the short names of all available address options. Socat provides some command line options that modify the behaviour of the program.

socat tutorial book

For a defined time socat continues to transfer data in the otherĭirection, but then closes all remaining channels and terminates. To shutdown only its write stream, giving it a chance to terminate gracefully. Socat transfers the EOF condition to the other stream, i.e. When one of the streams effectively reaches EOF, the closing phase begins. In the transfer phase, socat watches both streamscq read and write file descriptors via CWselect(), and, when data is available on one sideĪnd can be written to the other side, socat reads it, performs newline character conversions if required, and writes the data to the write fileĭescriptor of the other stream, then continues waiting for more data in both directions. These steps are usually blocking thus, especially forĬomplex address types like socks, connection requests or authentication dialogs must be completed before the next step is started. In the init phase, the command line options are parsed and logging is initialized.ĭuring the open phase, socat opens the first address and afterwards the second address. The life cycle of a socat instance typically consists of four phases. It has been written to better understand some UNIX process propertiesĪnd for debugging socat, but might be useful for other purposes too. Procan is a utility that prints information about process parameters to stdout. It has been written for debugging socat, but might be Streams, socat can be used for many different purposes.įilan is a utility that prints information about its active file descriptors to stdout. Because the streams can beĬonstructed from a large set of different types of data sinks and sources (see address types), and because lots of address options may be applied to the Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them.














Socat tutorial book