TCP - Socket (Endpoint)

> NetWork > Network - TCP (Transmission Control Protocol)

1 - About

A socket in the context of TCP.

A TCP socket is a unique identifier for each TCP connection and is the combination of:

  • a local address:
    • source host address,
    • source port,
  • a remote address
    • destination host address,
    • and destination port.

It's used interchangeability with the term TCP connection as one connection is equal to one socket.

The output of netstat showing a socket Id with its state

Advertising

3 - Adress

In tcp, a socket address is the combination of

4 - Type

4.1 - Remote

A remote socket is the socket of the client.

4.2 - Local

A local socket is the socket of the server

5 - Management

5.1 - List

5.2 - State

Advertising
network/tcp/socket.txt · Last modified: 2019/02/10 12:47 by gerardnico