The document describes a programming assignment to create a client-server application to reverse strings using TCP and UDP sockets. For part 1, the server will accept strings from multiple clients simultaneously using TCP sockets, reverse the strings, and send the reversed strings back. For part 2, the same application is to be created using UDP sockets instead of TCP. The assignment is due on EduShare by February 2nd and will be evaluated in the lab on February 3rd. Useful links on socket programming are also provided.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
127 views
CN Programming Assignment 1
The document describes a programming assignment to create a client-server application to reverse strings using TCP and UDP sockets. For part 1, the server will accept strings from multiple clients simultaneously using TCP sockets, reverse the strings, and send the reversed strings back. For part 2, the same application is to be created using UDP sockets instead of TCP. The assignment is due on EduShare by February 2nd and will be evaluated in the lab on February 3rd. Useful links on socket programming are also provided.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1
CN Programming Assignment-1
PART 1: String Reversal Server using TCP Sockets
The problem is to implement a client - server user-level application using sockets API in C/C++. The Server application has to support at least five clients simultaneously. Server accepts strings from clients (even multiple strings from each client) and replies with reverse strings. For example, when client sends “IITHYD”, Server replies with “DYHTII”. Both server and client(s) have to output both sending & receiving strings on the terminal. The server and client processes should be run on different machines. During evaluation, you will be asked to setup up to 5 client processes on different machines and show the outputs.
PART 2: String Reversal Server using UDP Sockets
This problem is same as above problem except that here you will be using UDP sockets for implementing the client – server application.
Assignment evaluation is in the lab on February 3rd, 2011. Submit assignments on EduShare by 11 PM, February 2nd, 2011
Useful links:
Slides on Socket Programming in C/C++: http://rites.uic.edu/~solworth/sockets.pdf
Sockets Tutorial: http://www.linuxhowtos.org/C_C++/socket.htm Beej's Guide to Network Programming Using Internet Sockets: ttp://www.beej.us/guide/bgnet/ Programming UNIX Sockets in C - Frequently Asked Questions: http://www.softlab.ntua.gr/facilities/documentation/unix/unix-socket-faq/unix-socket-faq.html