title: What exactly is Socket
body: <p>I don't know exactly what socket means.
  A server runs on a specific computer and has a socket that is bound to a specific port number. The server just waits, listening to the socket for a client to make a connection request.
  When the server accepts the connection, it gets a new socket bound to the same local port and also has its remote endpoint set to the address and port of the client.
  It needs a new socket so that it can continue to listen to the original socket for connection requests while tending to the needs of the connected client.</p>
  
  <p>So, socket is some class created in memory? And for every client connection there is created new instance of this class in memory? Inside socket is written the local port and port and IP number of the client which is connected. Can someone explain me more in details the definition of socket?</p>
  
  <p>Thanks</p>