maxdraco

Socket

The handle a program uses to send and receive data over a network connection.

Concept Networking Programming and AI

A socket is what a program opens to talk over a network, or to another program on the same machine. It is one end of a connection: the program writes data into it and reads replies out of it, and the operating system handles the rest. Each open connection uses its own socket, which is why a server’s capacity is often counted in sockets.

See also

  • Port (network) A number from 0 to 65535 that tells a computer which program an incoming network message is for.
  • TCP The internet protocol that delivers data reliably and in order between two programs.
  • Timeout A limit on how long a program waits for something before it gives up.
  • Access point (Wi-Fi) The device that broadcasts a Wi-Fi network and connects wireless devices to the wired network.
  • ARP Address Resolution Protocol: how a device on a local network finds the hardware address that goes with an IP address.
  • Captive portal The sign-in or terms page a public Wi-Fi network shows before it lets you onto the internet.
  • Cisco US company that makes networking equipment such as switches, routers and firewalls.
  • Client (client-server) A program that connects to a server to ask it for something.

Sources

  1. socket: create an endpoint for communication (POSIX.1-2024)The Open Group / IEEEofficial healthy, checked 2026-11-15 archived copy
  2. Network socketWikipedia healthy, checked 2026-11-15 archived copy