|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.Comms.SPCcommsUDP.DatagramSocketListener
DatagramSocketListener is used to listen to messages from others as well as send messages to others.
![]() |
![]() |
| 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 |
java.net.DatagramSocket dsocket
SPCcommsUDP main
java.lang.Thread t1
| Constructor Detail |
public DatagramSocketListener(int listenPort,
SPCcommsUDP comudp)
throws java.net.SocketException
java.net.SocketExceptionlistenPort - int - port to listen to.comudp - SPCcommsUDP - main driver this class is associated with.| Method Detail |
public void send()
public void run()
run in interface java.lang.Runnable
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||