Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

net::ClientInterface Class Reference

The ClientInterface class defines the operations needed by a generic client. More...

#include <ClientInterface.h>

List of all members.

Public Member Functions

int Connect (string aHost, int aPort)
 Connects to a remote host.
void Quit ()
 disconnects from the server
ResponseMessage * SubmitQuery (QueryMessage *aQuery)
 Submits a query to the server and receives the answer.
ResponseMessage * SubmitQuery (Message *aQuery)
 Submits a query to the server and receives the answer.
int SendDescriptor (string aPath)
 Send an UML task descriptor to the server.
int SendStringDescriptor (string &aDesc)
 Send an UML task descriptor to the server.


Detailed Description

The ClientInterface class defines the operations needed by a generic client.


Member Function Documentation

int net::ClientInterface::Connect string  aHost,
int  aPort
 

Connects to a remote host.

Parameters:
aHost The host's name
aPort The host's port
Returns:
-1 on error, else 0

int net::ClientInterface::SendDescriptor string  aPath  ) 
 

Send an UML task descriptor to the server.

Returns:
-1 on error, else 0
Parameters:
aPath The path of the file to send

int net::ClientInterface::SendStringDescriptor string &  aDesc  ) 
 

Send an UML task descriptor to the server.

Returns:
-1 on error, else 0
Parameters:
aDesc The task descriptor to send, contained in a string

ResponseMessage* net::ClientInterface::SubmitQuery Message aQuery  ) 
 

Submits a query to the server and receives the answer.

Returns:
The ResponseMessage built from the server answer
Parameters:
aQuery The query to send

ResponseMessage* net::ClientInterface::SubmitQuery QueryMessage aQuery  ) 
 

Submits a query to the server and receives the answer.

Returns:
The ResponseMessage built from the server answer
Parameters:
aQuery The query to send


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:12:37 2006 for common by  doxygen 1.4.4