Socket

Class Socket

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
SSLSocket
public class Socket
extends Object
implements Closeable

This class implements client sockets (also called just "sockets"). A socket is an endpoint for communication between two machines.

The actual work of the socket is performed by an instance of the SocketImpl class. An application, by changing the socket factory that creates the socket implementation, can configure itself to create soc