Sockets are defined as communication end-points, and relate to a means of computer comms using IP addresses and ports.
Sockets are generally used to send data between two computers on a network, but may also be used to communicate between two programs on the same computer.
This post provides a simple introduction using the Gambas Client and Server Socket components.