Modify the tcp server and udp server in client server, Computer Networking

Let's imagine that we have 2 TCP clients. A simple one (modTCPClient.c) like the one you wrote in the first part of project 2 and another one (modTCPClient1.c) that after it connects to the server and before it starts exchanging data with the server it sleeps for a period of time - e.g. 45secs. Run the server (modTCPServer.c) and then connect the client that sleeps. Immediately after connect the "simple" client. What you will see is that the second client waits for the first to be served.

Let's imagine the same scenario but with 2 UDP clients. We have a simple UDP client (modUDPClient.c) and another one (modUDPclient1.c) that after it creates the socket it sleeps for an ammount of time before it starts sending data. Following the same procedure described above we will see that in this case, the client that sends data first is served first from the UDP server (modUDPserver.c).

In this project you are asked to implement the TCP server in such a way that the client that has to send data first will not have to wait for other clients that are already connected to the server to be served first.

Tip 1: Just modify the TCP server that you are being given above.

Tip 2: Use fork().

 

Posted Date: 3/15/2013 1:13:18 AM | Location : United States







Related Discussions:- Modify the tcp server and udp server in client server, Assignment Help, Ask Question on Modify the tcp server and udp server in client server, Get Answer, Expert's Help, Modify the tcp server and udp server in client server Discussions

Write discussion on Modify the tcp server and udp server in client server
Your posts are moderated
Related Questions
UPD is a layer 4 Transport protocol. It is connection-less due to it does establish a connection thus the 3 step handshake is not needed, it does NOT execute any flow control or ac


Question: (a) Explain and illustrate different architectures for IEEE802.11 (WiFi). (b) The MAC management of IEEE802.11 handles transmitter activity for power management.

What is Telnet It is a protocol or set of rules that uses to connect one computer to another computer in network. It is also called as a remote login. The telnet operates on cl

Geo stationary satellite The satellite which is known as earth-orbiting satellite is called geo stationary satellite. The geo stationary satellite is placed directly over the e

today, what is the most common or mostly encountered problem in terms of database management system?

What is a File server? File servers are helpful for sharing files across a network. With a file server, the client passes requests for file records over system to file server.

Wireless Access Wireless access connecting end  systems ( that are often  mobile) into the network. Today there are two broad types  of wireless internet access(1) wireless an

Fat tree: It is a customized version of tree network. In this network bandwidth of edge (or connecting wire between nodes) increases in the direction of root. It's a more realisti

Q. Example on Multiplicative Decrease? w = 1 for (each new ACK received) w = w+1 until (loss detected or w >= ssthresh) Not so slow - Exponential increase