[SOLVED] NSYSP Homework 11

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon hw11-l5e45d.zip (346.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
Rate this product

Set up a client and server while talk over TCP AF_UNIX sockets. The server performs the dictionary look up.

 

  1. Edit the lookup7.c file to communicate with a server by using TCP AF_UNIX sockets.
  2. Edit usock_server.c to listen on an AF_UNIX socket for any number of TCP AF_UNIX clients and reply down the same socket.
  3. After the file have been edited, type make, or make usock_server and usock_cilent.
  4. When you get the prompt, run the usock_server and usock_client as shown in the output below.

 

Sample output:

 

 

Set up a client and server while talk over TCP AF_INET sockets. The server performs the dictionary look up.

 

  1. Edit the lookup8.c file to communicate with a server by using TCP AF_INET sockets.
  2. Edit isock_server.c to listen on an TCP AF_INET socket for any number of internet clients and reply down the same socket.
  3. After the file have been edited, type make, or make isock_server and isock_cilent.
  4. When you get the prompt, run the isock_server and isock_client.

 

Sample output:

 

 

Set up a client and server while talk over UDP AF_INET sockets. server performs the dictionary look up.

 

  1. Edit the lookup9.c file to communicate with a server by using UDP AF_INET sockets.
  2. Edit udp_server.c to listen on an UDP AF_INET socket for any number of internet clients and reply down the same socket.
  3. After the file have been edited, type make, or make udp_server and udp_cilent.
  4. When you get the prompt, run the udp_server and udp_client as shown in the output below.

 

Sample output:

 

 

  • hw11-l5e45d.zip