net.jetrix.agent
Interface Agent

All Known Implementing Classes:
QueryAgent, TSpecAgent

public interface Agent

An agent is a client able to connect to a server.

Since:
0.2
Version:
$Revision: 587 $, $Date: 2005-01-12 19:47:40 +0100 (mer., 12 janv. 2005) $
Author:
Emmanuel Bourg

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

connect

void connect(String hostname)
             throws IOException
Connect to the specified server.

Parameters:
hostname - the name or ip of the server
Throws:
IOException

disconnect

void disconnect()
                throws IOException
Disconnect from the server.

Throws:
IOException

send

void send(Message message)
          throws IOException
Send a message to the server.

Parameters:
message - the message to send
Throws:
IOException

receive

void receive(Message message)
             throws IOException
Receive a message sent by the server.

Parameters:
message -
Throws:
IOException


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.