This is a raw tcp package for tck/tk. It is based on tcpConnect by Pekka Nikander and has been modified to create servers, accept connections, shutdown parts of connections and use UNIX domain sockets. There are undoubtedly problems with this package, please let me know about them so they can be repaired. There are four commands: 1) connect [-server] (host port)|(path) returns a file identifier in the same way as the 'open' tcl command. If -server is specified, create a listening socket, otherwise connect to a remote server. If two other parameters are specified, these are assumed to be the host and port of a INET address. If only one other parameter is given it is assumed to be a path for a UNIX domain socket. For INET domain sockets, the global array connect_info(file_id) is set to the port obtained or connected to. 2) accept file_id Accept a connection on a socket created with 'connect -server'. Returns a fileid in the same way as 'open'. For INET sockets, the global array connect_info(file_id) will contain the remote host ip and port number. 3) shutdown file_id type Shuts down a full duplex connection for reading, writing or both. 4) filehandler file_id [type procedure] Set up a procedure for handling events on a file (such as able to read, write etc). -Tim MacKenzie (tym@dibbler.cs.monash.edu.au) Thu Jun 25 15:11:13 EST 1992