|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.p2p.communication.AbstractRequestListener
public abstract class AbstractRequestListener
| Constructor Summary | |
|---|---|
AbstractRequestListener()
Creates a new instance of AbstractRequestListener |
|
| Method Summary | |
|---|---|
void |
handleRequest(uk.ac.ic.doc.automed.p2p.messages.abstractlayer.AbstractMessage request,
java.io.OutputStream output)
Handle TCP-type requests |
void |
handleRequest(byte[] dataReceived)
Another handler for TCP-type requests |
byte[] |
handleUDPRequest(byte[] dataReceived)
Handle UDP requests |
byte[] |
handleUDPRequest(java.net.InetAddress srcHost,
int srcPort,
byte[] dataReceived)
|
byte[] |
handleUDPRequest(java.lang.String srcHost,
int srcPort,
byte[] dataReceived)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRequestListener()
| Method Detail |
|---|
public void handleRequest(uk.ac.ic.doc.automed.p2p.messages.abstractlayer.AbstractMessage request,
java.io.OutputStream output)
throws java.io.IOException
handleRequest in interface RequestListenerjava.io.IOException
public void handleRequest(byte[] dataReceived)
throws CommunicationException
RequestListener
handleRequest in interface RequestListenerCommunicationException
public byte[] handleUDPRequest(byte[] dataReceived)
throws CommunicationException
handleUDPRequest in interface RequestListenerCommunicationException
public byte[] handleUDPRequest(java.lang.String srcHost,
int srcPort,
byte[] dataReceived)
throws CommunicationException
handleUDPRequest in interface RequestListenerCommunicationException
public byte[] handleUDPRequest(java.net.InetAddress srcHost,
int srcPort,
byte[] dataReceived)
throws CommunicationException
handleUDPRequest in interface RequestListenerCommunicationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||