|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anotheria.net.udp.server.UDPObjectReceiver
public class UDPObjectReceiver
A receiver for udp objects in udp packets to build udp servers upon.
| Constructor Summary | |
|---|---|
UDPObjectReceiver(int port)
Creates a new UDPObjectReceiver that listens at the given port. |
|
| Method Summary | |
|---|---|
void |
addWorker(IUDPObjectWorker worker)
Adds a worker to this receiver. |
void |
proceedIncomingPacket(byte[] data,
UDPSenderInfo senderInfo)
|
void |
removeWorker(IUDPObjectWorker worker)
Removes the worker from this receiver. |
void |
start()
Starts the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDPObjectReceiver(int port)
port - the port to listen at| Method Detail |
|---|
public void start()
public void proceedIncomingPacket(byte[] data,
UDPSenderInfo senderInfo)
proceedIncomingPacket in interface IUDPPacketWorkerpublic void addWorker(IUDPObjectWorker worker)
worker - the worker to addpublic void removeWorker(IUDPObjectWorker worker)
worker - the worker to remove or an object equal to the worker to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||