help about java code regarding udp, JAVA Programming

I need to know waht exactly is happining in the following code
class Worker implements Runnable {

DatagramSocket socket = null;
DatagramPacket packet = null;

public Worker (DatagramSocket socket, DatagramPacket packet) {
this.socket = socket;
this.packet = packet;
}
public void run() {

try {
BufferedReader fileCopyBuffer = new BufferedReader(new InputStreamReader(new FileInputStream ("NormanConquest.txt")));
String line;
while ((line = fileCopyBuffer.readLine()) != null) {
DatagramPacket response = new DatagramPacket(line.getBytes(), line.length(),packet.getAddress() , packet.getPort());
System.out.print(".");
socket.send(response); } } catch (Exception e){;};
}

}
Posted Date: 1/25/2013 12:07:12 PM | Location : Malta







Related Discussions:- help about java code regarding udp, Assignment Help, Ask Question on help about java code regarding udp, Get Answer, Expert's Help, help about java code regarding udp Discussions

Write discussion on help about java code regarding udp
Your posts are moderated
Related Questions
What is the difference between a while statement and a do while statement? A while statement checks at the starting of a loop to see whether the next loop iteration should occu

JDBC Assignment Banking Database System:  BankCustomer CUST_ID  CUST_NAME ADDRESS ACC_TYPE CUST_ID

Need to prepare 18 java questions - design patterns Project Description: Hello, I require a freelancer who will create java questions for oracle exams, see the attached sampl

Android and Universal iOS, Multipurpose Testing App Universal iOS and Android, versatile Testing App Based on Phonegap with the subsequent main features * Support single answ

How to Drawing Images at Actual Size Once the image is loaded draw it in the paint() method by using the drawImage() method like this g.drawImage(img, x, y, io) img is a

This assignment requires you to design, implement and test a program using Java features from the first half of the subject content. You are required to implement in Java all the c

The program: 2 classes one called Student, one called Grades Functional Requirements: Ask for how many students u need to enter the program must: prompt the user to enter the

Explain the following terms declaring, Allocating and initializing two dimensional array? Two dimensional arrays are declared, allocated and initialized much such as one dimens

Differentiate uni-Processor OS from Multi-Processor OS? Uni-processor OS : Uni-processor OS'es is designed to schedule tasks on a single uPs just whereas Multiprocessor O

699906626330444777707776662233777 decoding program