At the server side, we use
Socket server = serverSocket.accept();
to create a socket. After the socket is created, we can create a new thr
You should imagine a socket as a two-pair array of information:
therefore a single Server may have many connections connected to it that differ by their {Dest Port, Dest Addr}
example: Server port 10000 addr 10.0.0.1
Socket 1:
- {10000,10.0.0.1}
- {10001,10.0.0.2}
Socket 2:
- {10000,10.0.0.1}
- {10002,10.0.0.1} - address may seem the same but as a whole its a
different destination
hope this helps.