|
TM Service Discovery Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITransport
Interface for service discovery transports
| Method Summary | |
|---|---|
String |
receive(byte[] packet)
Handles receiving data |
void |
send(byte[] packet)
Handles sending data |
void |
setTargetAddress(String address)
Sets the address of the target, depending on the implementation (IP, port...) |
void |
setTimeOut(int timeOut)
Sets the timeout for the transport implementation. |
| Method Detail |
|---|
void send(byte[] packet)
throws IOException
packet - Data packet to be sent.
IOException
String receive(byte[] packet)
throws IOException
packet - Packet to be filled with the reply data.
IOException
void setTargetAddress(String address)
throws Exception
address - Address or identifier of the target.
Exception
void setTimeOut(int timeOut)
throws Exception
timeOut - The timeout in milliseconds
Exception
|
TM Service Discovery Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||