uk.ac.ic.doc.automed.p2p.communication
Class AbstractServer
java.lang.Object
uk.ac.ic.doc.automed.p2p.communication.AbstractDaemon
uk.ac.ic.doc.automed.p2p.communication.AbstractServer
- All Implemented Interfaces:
- java.lang.Runnable
public class AbstractServer
- extends AbstractDaemon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractServer
public AbstractServer(RequestListener requestListener)
throws java.io.IOException
- Throws:
java.io.IOException
AbstractServer
public AbstractServer(RequestListener requestListener,
int timeout,
int workers,
int desiredPort,
int bufferSize)
throws java.io.IOException
- Throws:
java.io.IOException
getTimeOut
public int getTimeOut()
- Specified by:
getTimeOut in class AbstractDaemon
getWorkersNumber
public int getWorkersNumber()
- Specified by:
getWorkersNumber in class AbstractDaemon
getDesiredPort
public int getDesiredPort()
- Specified by:
getDesiredPort in class AbstractDaemon
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize in class AbstractDaemon
replyToMessage
public void replyToMessage(uk.ac.ic.doc.automed.p2p.messages.abstractlayer.AbstractMessage message,
java.io.OutputStream output)
throws java.io.IOException
- Specified by:
replyToMessage in class AbstractDaemon
- Throws:
java.io.IOException