Lab 2 CS Majors

UDP Programming in C++

Lab Objective:

  • To gain experience using Unix/Linux UDP socket programming

Reading/Reference: Lab overview:

You will create programs using UDP to perform useful networking functions. You can use the code in /home/class/CSC4093/UDBChat/ as a starting point, but do not simply hack the code to achieve functionality. I will expect you to create a set of useful, reusable, network functions using sockets, and then to create well designed, structured code to achieve the required functionality.

Sample code:

Lab tasks:

The lab is worth 100 points total. Below I give you a set of requirements and options. You may do as many or few – this is a chance to get extra credit. However, no matter what you do, you will not get higher then a 100 if you do not have good clean code. Your score is dependant on the highest level of CS course you have taken.

Feature CS II Soft Dev Op Sys
Well Designed/Written Code 20 20 20
Well commented code 5 5 5
Synchronous two-way chat function (take turns typing) 45 35 25
Display username of partner. 15 10 5
Display "Typing" if other user typing 20 15 10
Character at a time transmission/reception 20 15 10
N-way chat 35 30 25
Asynchronous two-way chat function 40 30 25
Search for and list available partners (use multicast or broadcast beacon) 30 25 20
MAXIMUM SCORE 230 185 145

Turn in

  1. A document listing the features you support
  2. Screen captures clearly (with headings) demonstrating each feature support above.
  3. All source code (including makefile)
-- JimSkon - 2011-09-15
Topic revision: r6 - 2013-09-17 - JimSkon
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback