tulsa - Tcl Unix Local Sockets, Eh?
The Tulsa Tcl extension provides server, client, and pair UNIX socket(2)s. Tulsa sockets are Tcl channels and as such support standard Tcl channel configuration options.
Returns a connected pair of channels as a 2-element list.
Connects to server at path. Returns the client channel.
Opens a server at path and listens for incoming connections. A connection point at path is created on open and removed on close. Exceptional conditions such as abrupt program termination may prevent removing the connection point. Returns the server channel.
Accepts a connection on a server channel. If there are no pending connections, blocking channels will block until a connection arrives. Returns the accepted client channel, or an empty string if the channel is non-blocking and there are no pending connections.
Wraps a system-specific file descriptor in a new Tulsa client channel. Returns the client channel.
Returns a list of readable server options provided by Tulsa.
Returns a list of writable server options provided by Tulsa.
Returns a list of readable client options provided by Tulsa.
Returns a list of writable client options provided by Tulsa.
socket, unix
Networking
Copyright © 2018 Stuart Cassoff <stwo@users.sourceforge.net>