osmq.mcns
Class MCResponder
java.lang.Object
osmq.util.Threaded
osmq.mcns.MCResponder
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- DiscoveryServer
- public abstract class MCResponder
- extends Threaded
A threaded base class for respondants to requests on a multicast channel.
The class answers Muticast requests on a specific channel and passes the
string to an onRequest() function that returns a string. If the String
returned by onRequest() is not null, it is returned to the requestor node
via a datagram write.
Field Summary |
static byte[] |
buf
|
Methods inherited from class osmq.util.Threaded |
getExceptionListener, getIterations, getPriority, getSequenceNumber, getUserDefinedName, getYieldToPeers, hasTerminated, isPaused, isRunning, isShutdownCompleted, killAll, killAllInGroup, run, setExceptionListener, setPaused, setPriority, setUserDefinedName, setYieldCount, shutdownRequested, sleepSecs, sleepTenths, start, stop, successfulInit |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
public static byte[] buf
isActive
public boolean isActive()
setChannel
public void setChannel(int channel)
getChannel
public int getChannel()
setDottedGroupAddress
public void setDottedGroupAddress(java.lang.String dottedaddress)
getDottedGroupAddress
public java.lang.String getDottedGroupAddress()
setTimeToLive
public void setTimeToLive(int ttl)
getTimeToLive
public int getTimeToLive()