ist.palcom.mal
Class UDPCommunicationThread
java.lang.Object
ist.palcom.palcomthreads.PalcomThread
ist.palcom.palcomthreads.PalcomPriorityThread
ist.palcom.mal.CommunicationThread
ist.palcom.mal.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
URL_PREFIX
protected static final 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 IOException
- Throws:
IOException
getSendBufferSize
public int getSendBufferSize()
throws IOException
- Throws:
IOException
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws IOException
- Throws:
IOException
setSendBufferSize
public void setSendBufferSize(int size)
throws IOException
- Throws:
IOException
run
public void run()
- Description copied from class:
PalcomThread
- This method is overridden by subclasses.
- Overrides:
run in class PalcomThread