Thursday, April 18, 2013

TCP

The third assignment is about TCP and UDP. I wanna talk about TCP first because I just finish it. So it is basically about creating a connection between client and server through a socket. The server listen from a port (ex: 8888). Basically, the server open that port and let everyone coming from that port.

From the client side, if he wants to connect to the server, he has to go through the opening port, that is 8888. So when the client connect to the server, it creates the connection socket. So next time when client wants to communicate with server and vice versa, they communicate from the socket. The process of making connection is called 3 handshake because there are 3 messages transmitted to create the connection.

Generally, this TCP assignment is easy. First of all, we create the connection between client and server. After the connection is made, client send a list of data to server. The server sort the list and send them back to client.

The hardest part is understanding the code line by line and learned what the code is actually doing. Then finally, do some coding stuffs and the TCP is done.

No comments:

Post a Comment