scim::SocketClient Class Reference
[SocketCommunication]

Socket client class. More...

#include <scim_socket.h>

List of all members.

Public Member Functions

 SocketClient ()
 Constructor.
 SocketClient (const SocketAddress &address)
 Constructor.
 ~SocketClient ()
 Destructor.
bool is_connected () const
 Check if the socket is connected.
bool connect (const SocketAddress &address)
 Connect to a server.
void close ()
 Close the client.


Detailed Description

Socket client class.

Class SocketClient provides basic operations to create a Socket Client, such as connect, read, write, etc.


Constructor & Destructor Documentation

scim::SocketClient::SocketClient (  ) 

Constructor.

scim::SocketClient::SocketClient ( const SocketAddress address  ) 

Constructor.

Parameters:
address the server address to be connected.

scim::SocketClient::~SocketClient (  ) 

Destructor.


Member Function Documentation

bool scim::SocketClient::is_connected (  )  const

Check if the socket is connected.

Returns:
true if the socket client is connected to a server.

bool scim::SocketClient::connect ( const SocketAddress address  ) 

Connect to a server.

Parameters:
address the server socket address to be connected to.
Returns:
true if connected successfully.

void scim::SocketClient::close (  ) 

Close the client.

Reimplemented from scim::Socket.


The documentation for this class was generated from the following file:

Generated on Sat Jan 24 23:45:09 2009 for scim by  doxygen 1.5.7.1