socket
A socket is the hole in a wall where you plug in a lamp or charger. People also say it about the hollow part of a joint, like a shoulder socket, or the end of a lightbulb that twists into a fixture.
What a model may hear
- network endpoint networking and operating systems
- treat it as an IP address plus port number for sending or receiving data over the internet
- Unix domain socket Unix-like operating systems
- assume a file-like path for local inter-process communication between programs on the same machine
- WebSocket web development
- open a persistent two-way connection between a browser and server for real-time updates
- CPU socket computer hardware
- refer to the physical connector on a motherboard that holds a processor chip
Where people and models part ways
“Check the socket in the kitchen”
Meant: Look at the electrical outlet
May be taken as: Scan network ports or probe for open connections on a device named 'kitchen'
Say instead: “Check the electrical outlet in the kitchen”
“My shoulder socket hurts”
Meant: The joint is painful
May be taken as: Search for hardware CPU socket errors or generate code for socket diagnostics
Say instead: “My shoulder joint hurts”
“Open a socket to talk to the server”
Meant: Start a network connection
May be taken as: Write low-level networking code using specific system calls rather than using a higher-level library
Say instead: “Open a network connection to the server using an HTTP client”
Tips
- Say 'electrical outlet' or 'power plug' when you mean the wall kind
- Say 'network connection' or 'port' when you want internet communication without specifying low-level details
- Say 'CPU socket' explicitly when you mean the hardware connector
- Add 'Web' before 'socket' if you mean the browser technology
- Say 'joint socket' or 'bone socket' for anatomy to avoid hardware confusion
Often confused with
- port
- a numbered doorway on a computer, not a physical hole
- plug
- the male end that goes into a socket, not the connection itself
- outlet
- the whole wall fixture, not the software concept
- connection
- the established link, not the endpoint or physical holder
- slot
- a narrow opening for cards or memory, not for bulbs or network data
- jack
- a socket for audio or phone cables, more specific than general socket