Next: UNIXNetworkStream, Previous: TCPIPV6NetworkStreamReader, Up: Classes [Index]
TCPIPV6UNIXNetworkStreamWriter ClassopenOn (String hostName)openOn (String hostName, Integer port)Open a socket connection to hostName for writing, optionally using
port as the network port for the connection. If successful, the
method returns the filehandle number of the socket object that made the
connection as an Integer
If no port is given, the method uses the definition of
DEFAULT_TCPIP_PORT, which is defined in ctalkdefs.h,
as the port number. To include these definitions, you can add
the following line to a program.
#include <ctalk/ctalkdefs.h>
The argument hostName must be the name of an IPv6 capable host,
or the method raises an Exception and returns 0. The method
also raises an Exception and returns 0 if an error occurs while
trying to connect the socket.