Next: , Previous: , Up: Classes   [Index]


TCPIPNetworkStreamWriter

TCPIPNetworkStreamWriter Class

The TCPIPNetworkStreamWriter class defines supporting methods for programs that write to network connections.

For example programs, refer to the TCPIPNetworkStream class; See TCPIPNetworkStream.

Instance Methods

openOn (String address)
openOn (String address, Integer port)

Creates a socket and connects it to the network address given as the argument.

If a port argument is given, the socket connects over that port; otherwise, the socket connects via DEFAULT_TCPIP_PORT, which is defined in classes/ctalkdefs.h, which you can adjust to suit the network’s needs.

These methods raise a SystemErrnoException if any of the networking functions return an error.