UDP Programming in Java

Lab Objective:

  • To gain experience using Unix/Linux UDP socket programming using Java and NetBeans


Lab overview:

Java is an important language, and syntacically VERY similar to C++. In this lab we will create a simple Java chat program to begin to learn Java, and networking in Java. We will be using the Netbeans development environment on Ubuntu.

Sample code: SenderReceiver.java

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-18
Topic revision: r6 - 2013-09-26 - 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