|
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 | |
---|---|
java.lang.String |
receive(byte[] packet)
Handles receiving data |
void |
send(byte[] packet)
Handles sending data |
void |
setTargetAddress(java.lang.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 java.io.IOException
packet
- Data packet to be sent.
java.io.IOException
java.lang.String receive(byte[] packet) throws java.io.IOException
packet
- Packet to be filled with the reply data.
java.io.IOException
void setTargetAddress(java.lang.String address) throws java.lang.Exception
address
- Address or identifier of the target.
java.lang.Exception
void setTimeOut(int timeOut) throws java.lang.Exception
timeOut
- The timeout in milliseconds
java.lang.Exception
|
TM Service Discovery Release 2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |