English | Deutsch
A connection happens when two end points communicate.
A connection can be:
- Unidirectional - One end point "talks" with another end point (only one of them is allowed to talk through that connection)
- Bidirectional - Both end points "talk" to each other through that connection
A connection can be understood as a pipe. Data is sent through that pipe.
When a client or server connects with another client or server it means that a communication has been stablished (a "pipe") so they can send data to each other from now on through that connection ("pipe").
A connection ends when one of the end points looses it (a client is closed or maybe abruptly disconnected from the internet) or one of them requests to end the connection (for example when a client has sent another client all that data he had been asked to send).