ist.palcom.mal.udp
Class UDPCommunicationThread
java.lang.Object
ist.palcom.palcomthreads.PalcomThread
ist.palcom.palcomthreads.PalcomPriorityThread
ist.palcom.mal.CommunicationThread
ist.palcom.mal.udp.UDPCommunicationThread
- Direct Known Subclasses:
- UDPMulticastCommunicationThread, UDPUnicastCommunicationThread
public abstract class UDPCommunicationThread
- extends CommunicationThread
UDPCommunicationThread is a CommunicationThread for UDP communication. It
sends an receives on one socket (the concrete subclasses handle different
kinds of UDP sockets).
- See Also:
CommunicationThread
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URL_PREFIX
protected static final java.lang.String URL_PREFIX
- See Also:
- Constant Field Values
socket
protected DatagramSocket socket
UDPCommunicationThread
protected UDPCommunicationThread(PalcomScheduler scheduler,
PalcomThread distributor,
DatagramSocket socket)
tearDown
protected void tearDown()
- Close socket if needed.
getReceiveBufferSize
public int getReceiveBufferSize()
throws java.io.IOException
- Throws:
java.io.IOException
getSendBufferSize
public int getSendBufferSize()
throws java.io.IOException
- Throws:
java.io.IOException
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws java.io.IOException
- Throws:
java.io.IOException
setSendBufferSize
public void setSendBufferSize(int size)
throws java.io.IOException
- Throws:
java.io.IOException
run
public void run()
- Description copied from class:
PalcomThread
- This method is overridden by subclasses.
- Overrides:
run in class PalcomThread