|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Agent
An agent is a client able to connect to a server.
| Method Summary | |
|---|---|
void |
connect(String hostname)
Connect to the specified server. |
void |
disconnect()
Disconnect from the server. |
void |
receive(Message message)
Receive a message sent by the server. |
void |
send(Message message)
Send a message to the server. |
| Method Detail |
|---|
void connect(String hostname)
throws IOException
hostname - the name or ip of the server
IOException
void disconnect()
throws IOException
IOException
void send(Message message)
throws IOException
message - the message to send
IOException
void receive(Message message)
throws IOException
message -
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||