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
Question 1: (a) In networking, there are different possible topologies. Explain the Linear bus, Ring and Star topology along with their advantages and disadvantages. (b) W

Define Character Stuffing? In byte stuffing (or character stuffing), a particular byte is added to the data section of the frame when there is a character with the same pattern

It's a Hybrid device that joins the features of both bridges and routers.

NetWare IPX addressing uses a network number and a node number. Which  statements are true? A. The network address is administratively assigned and can be up to 16 hexadecimal digi

Question 1: (a) How are IPv4 addresses transformed into IPv6 addresses using IPv4 compatible addresses? (b) Name some of the simplifications that were introduced in IPv6.

Networks are more frequently being prepared to allow specification of the quality of service needed by users. For example: - a typical voice telephone call may give a QoS para

Define the term - Proxy servers These types of firewalls have been further classified into two types: application level gateways and circuit level gateways. The application

GRP uses a composite metric complete up of bandwidth and delay by default, it updates each 60 Seconds and will trigger an update if the topology changes.

ATM designers select cells over packets because of the following facts: Cells are fixed length and memory management for them is easy. Handling variable length packets tends