Thursday, August 11, 2016

Port vs Socket

A circuit is a connection - 
A socket is an endpoint. 
A connection consists of 2 sockets

A port is a number between 1 and 65535 inclusive that signifies a logical gate in a device

socket consists of three things:
  1. An IP address
  2. A transport protocol
  3. A port number
For example:
  • 1030 is a port.
  • (10.1.1.2 , TCP , port 1030) is a socket.