#include <scim_socket.h>
Inherits scim::Socket.
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. |
Class SocketClient provides basic operations to create a Socket Client, such as connect, read, write, etc.
scim::SocketClient::SocketClient | ( | ) |
Constructor.
scim::SocketClient::SocketClient | ( | const SocketAddress & | address | ) |
Constructor.
address | the server address to be connected. |
scim::SocketClient::~SocketClient | ( | ) |
Destructor.
bool scim::SocketClient::is_connected | ( | ) | const |
Check if the socket is connected.
bool scim::SocketClient::connect | ( | const SocketAddress & | address | ) |
Connect to a server.
address | the server socket address to be connected to. |
void scim::SocketClient::close | ( | ) |