TCP Servers - martinbalke-401-adavanced-js/seattle-javascript-401n14 GitHub Wiki

TCP Servers

TCP is a transfer protocol that does a couple of cool things. The first thing that it does is whats know as the three way handshake. It will establish a connection with the server, that server will send back and acknowledgement then tcp will send over some dummy data to check the connection.

This secure established connection allows for some interesting features. In order package transmission, that insures that all files sent are correctly ordered when received. Dropped package confirmation that makes sure that any package that is lost in the middle of file transfer will be resent until the server confirms it has received the package. And mandatory data corruption checks via a hash.