What Is a Socket?


A socket is a single endpoint in a two-way communication network for receiving data. Sockets bind to port numbers to help identify the data receiver. Client-server applications often implement sockets to interact.