Socat 2.0.0-b2 (Beta branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Socat 2.0.0-b2 (Beta branch)
# 1  
Old 11-02-2008
Socat 2.0.0-b2 (Beta branch)

Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (terminal or modem, etc.), socket (Unix, IP4, IP6 - raw, UDP, TCP), SSL, a client for SOCKS4, or proxy CONNECT. It supports broadcasts and multicasts, abstract Unix sockets, Linux tun/tap, GNU readline, and PTYs. It provides forking, logging, and dumping and different modes for interprocess communication. Many options are available for tuning socat and its channels. Socat can be used, for example, as a TCP relay (one-shot or daemon), as a daemon-based socksifier, as a shell interface to Unix sockets, as an IP6 relay, or for redirecting TCP-oriented programs to a serial line. License: GNU General Public License v2 Changes:
The main enhancements are so-called address chains that concatenate simple addresses. Address chains are similar to command shell pipes, but work bidirectionally. Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
fifo2(3tcl)															       fifo2(3tcl)

NAME
fifo2 - Create and manipulate pipe fifo channels SYNOPSIS
package require Tcl package require memchan fifo2 DESCRIPTION
The command described here is only available in a not-yet released version of the package. Use the CVS to get the sources. fifo2 creates two stream-oriented in-memory channels and returns their handles as a two-element list. There is no restriction on the ulti- mate size of the channels, they will always grow as much as is necessary to accommodate the data written into them. In contrast to the channels generated by fifo a pair of channels created here is connected internally in such a way that data writ- ten into one channel can be read from the other. All data written into them is read in the same order. This also means that the two channels of the pair are not seekable. The channels created here can be transferred between interpreters in the same thread and between threads. As both channels in the pair can be transferred independently they can be used to create a bidirectional connection between two interpreters. Memory channels created by fifo2 provide two read-only options which can be queried via the standard fconfigure command. These are -rlength The value of this option is the number of bytes currently available for reading from the channel. -wlength The value of this option is the number of bytes currently written into the channel. Note that the two lengths are switched for the channels of a pair. In other words, the number of bytes written for one of the channels is the number of bytes readable from the other end. As the channels generated by fifo2 grow as necessary they are always writable. This means that a writable fileevent-handler will fire con- tinuously. The channels are also readable if they contain more than zero bytes. Under this conditions a readable fileevent-handler will fire continu- ously. SEE ALSO
fifo, memchan, null KEYWORDS
channel, fifo, i/o, in-memory channel, memchan, stream COPYRIGHT
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net> Memory channels 2.2 fifo2(3tcl)