National University of Sciences & Technology
School of Electrical Engineering and Computer Science
Department of Computing
CS 330: Operating Systems (3+1):
Assignment 2
CLO3: Design & implement various pieces of OS software
Maximum Marks: 50 Instructor: Dr. Mehdi Hussain
Announcement Date: Due Date : 2 August 2021 (10 pm) on LMS
Developing audio file transfer over TCP and UDP sockets
Overall functional requirement:
A group of two students each is required to design and code a sender/receiver program to transmit “Audio File”
contents over UDP and TCP sockets separately using various system calls. It is required to code in GNU C on Linux
operating system.
Sender requirements:
Following are sender requirements:
a) Able to open and read contents of a audio file
b) Create segments and send them separately over TCP and UDP
c) Indicate the end of file to receiver
d) Close the socket once complete file is sent
Receiver requirements:
Following are receiver requirements:
a) Able to open a new audio file
b) Receive segments and write them in new file
c) Able to identify eof to terminate
d) Close the file and socket as well
Submission:
a) Two students can group and only one of the students in a group is required to make both the following
submissions on LMS.
b) Submit a single compressed folder containing code of sent and received text files of both the versions (TCP and
UDP)