/
dgd-net/
dgd-net/doc/
dgd-net/doc/kfun/
dgd-net/src/host/unix/
dgd-net/src/kfun/
NAME
	connect - initiate a tcp connection

SYNOPSIS
	void connect(object obj, string ipnumber, int port, string protocol)


DESCRIPTION
	Initiate a telnet or tcp connection to the specified host and port,
	and associate the connection with obj when it is established.
	The protocol may be "telnet" or "tcp".

	When the connection succeeds, open() will be called in obj.  If it
	fails or times out, close() will be called in obj.  After the
	connection is established, obj will be a normal user object.

	Only the driver object can use this function.


SEE ALSO
	kfun/open_port, kfun/send_message, kfun/send_datagram