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
Q. Unshielded Twisted Pair - transmission media? - A most common kind suitable for both voice and data transmission - Categories are determined by chain quality - Cat 3 c


Which protocol comes under Hybrid dynamic type? Ans)  EIGRP (ENHANCED INTERIOR GATEWAY ROUTING PROTOCOL) comes under hybrid dynamic.

Why do we require to subtract two from number of hosts?

Illustrate the term- Search Engine and Surfing Search Engine: Software used to find information on the Web. Examples are Google, Lycos and Yahoo. Server: A computer with

List the steps included in creating the checksum. a. Separate the data into sections b. Add the sections together using 1's complement arithmetic c. Take the complement o

Question: (a) What is a script kiddie? Is it a significant security threat, and why? (b) Assume that UNIX uses the user login name in lieu of the traditional salt, what is

What is an Ethernet? The Ethernet topology was developed at the University of Hawaii to connect computers on the many Islands. It was radio based design. Later, Robert Metacalf

Cut-Through is the best mode of switching. Store and Forward reads in the whole frame, confirms the frame is valid, and then forwards the frame onto the wire. Cut-Through only chec

Q. Diffrence between Network vs Internet Layers? - Similar to all the other OSI Layers the network layer provides both connectionless and connection-oriented services. From th