Navigation: Programming Cookbook > Sockets Connectivity >
Establishing a Client Connection
An instance of the Socket class represents one end of a connection. A client must create a Socket, identifying the server to which it wants to connect (by InternetAddress and port number), and then issue a #connect call. If the connection succeeds, each end will have an appropriate Socket object that can be used to talk across the link.