SecurePlayLibray J2SE
v2.1

com.SecurePlay.Comms.SPCcommsUDP
Class DatagramSocketListener

java.lang.Object
  extended bycom.SecurePlay.Comms.SPCcommsUDP.DatagramSocketListener
All Implemented Interfaces:
java.lang.Runnable

public class DatagramSocketListener
extends java.lang.Object
implements java.lang.Runnable

DatagramSocketListener is used to listen to messages from others as well as send messages to others.

Author:
IT GlobalSecure
See Also:
SecurePlay License Information
 

Field Summary
(package private)  java.net.DatagramSocket dsocket
          Used pack messages into it and send them.
(package private)  SPCcommsUDP main
          Main UDP driver class associated with this DatagramSocketListener.
(package private)  java.lang.Thread t1
          Thread that this DatagramSocketListener lives in.
 
Constructor Summary
DatagramSocketListener(int listenPort, SPCcommsUDP comudp)
          Constructor
 
Method Summary
 void run()
          Listens to messages.
 void send()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dsocket

java.net.DatagramSocket dsocket
Used pack messages into it and send them.


main

SPCcommsUDP main
Main UDP driver class associated with this DatagramSocketListener.


t1

java.lang.Thread t1
Thread that this DatagramSocketListener lives in.

Constructor Detail

DatagramSocketListener

public DatagramSocketListener(int listenPort,
                              SPCcommsUDP comudp)
                       throws java.net.SocketException
Constructor

Throws:
java.net.SocketException
Parameters:
listenPort - int - port to listen to.
comudp - SPCcommsUDP - main driver this class is associated with.
Method Detail

send

public void send()

run

public void run()
Listens to messages.

Specified by:
run in interface java.lang.Runnable

SecurePlayLibray J2SE
v2.1

2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.