Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between endpoint and socket?

Almost every definition of socket that I've seen, relates it very closely to the term endpoint:

wikipedia:

A network socket is an internal endpoint for sending or receiving data at a single node in a computer network. Concretely, it is a representation of this endpoint in networking software

This answer:

a socket is an endpoint in a (bidirectional) communication

Oracle's definition:

A socket is one endpoint of a two-way communication link between two programs running on the network

Even stackoverflow's definition of the tag 'sockets' is:

An endpoint of a bidirectional inter-process communication flow

This other answer goes a bit further:

A TCP socket is an endpoint instance

Although I don't understand what "instance" means in this case. If an endpoint is, according to this answer, a URL, I don't see how that can be instantiated.

like image 384
garci560 Avatar asked Jan 19 '26 15:01

garci560


1 Answers

"Endpoint" is a general term, including pipes, interfaces, nodes and such, while "socket" is a specific term in networking.

like image 70
Zac67 Avatar answered Jan 23 '26 08:01

Zac67



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!