Difference: Lab2CSMajors2013 (3 vs. 4)

Revision 42013-09-13 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="CSC4093ComputerNetworking2013"

Lab 2 CS Majors

Line: 24 to 24
  A tricky aspect of this project is that once you start waiting for a packet on a port, the program waits until it gets a packet, blocked. There is a solution - threads. The idea of threads is that the program is running multiple routine at the same time. The idea is that you can have a thread broadcasting beacons, another listening for beacon, one waiting for packets from a chat partner(s), and one waiting for user input. You can start all these threads, and than have them communicate through shared data structures in the program. Be careful, however, of race conditions.
Changed:
<
<
Sample code for UDP Programming on Linux:
>
>
Sample code for UDP Programming on Linux: (in "/home/class/csc4093/UDPChat")
 
Changed:
<
<
Sample code for broadcasting:
>
>
Sample code for broadcasting: (in "/home/class/csc4093/UDPChat")
 
Added:
>
>
Sample code for creating threads: (in "/home/class/csc4093/ThreadExample") Sample code for sending and receiving broadcasts in multiple threads (in "/home/class/csc4093/ThreadBroadcast")
  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 dependent on the highest level of CS course you have taken.

 
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