April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Sockets and Java Socket Classes
nA socket is an endpoint of a two-way communication link between two programs running on the network.
nA socket is bound to a port number so that the TCP layer can identify the application that data destined to be sent.
nJava’s .net package provides two classes:
nSocket – for implementing a client
nServerSocket – for implementing a server