Tuesday, May 23, 2017

CST 311 Week 4

CST 311 Week 4

         This week was a short week in which we got to focus on studying for our midterm. We learned about socket programming with UDP and TCP and the key differences in programming for the two protocols. With UDP socket programming, no handshaking is necessary to establish a connection. The sender explicitly attachesIP destination address and port number to each packet. The receiver extracts sender IP address and port number from the received packet. Wtih TCP programming the client must contact the server. The server must have a "welcome" door that welcomes a clients contact. When a client is contacted, TCP server creates a new server socket to communicate with that particular client. Python code was explored in how client and server applications are coded for UDP and TCP socket programming.

No comments:

Post a Comment