Question: Need help with C programming with servers and clients in linux: Consruct C programming code for an echo server file and a log server file

Need help with C programming with servers and clients in linux:

Consruct C programming code for an echo server file and a log server file (the echo and log servers have a client-server relationship that communicate via UDP (User Datagram Protocol)) so that the echo server will send "echo server is stopping" message to the log server when the echo server is stopped with "ctrl+c". Usually the log server logs the messages the echo server sends to it in an output log file called "myLog.txt", but the log server should not log this message and instead terminate.

The echo server source file name is echoServer.c while the client server source file name is logServer.c

echo server is started with: echoServer 4000 -logip 10.24.36.33 -logport 8888

the above input means that the log server is running at 10.26.36.33 machine, port 8888

In the log server file, an argument passed to the log server should indicate what port addresss it should listen on.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!