#include <socket.h>
Public Member Functions | |
TCP_Client (bool enable_exception) | |
~TCP_Client () | |
void | connect (string ip, string port) |
void | disconnect (void) |
void | send (const string *data, int opt=0) |
void | send (const string data, int opt=0) |
void | send (void *data, int len, int opt=0) |
void | recv (string &r, int opt=0) |
Protected Attributes | |
bool | ex |
int | fd |
char * | buf |
Definition at line 9 of file socket.h.
TCP_Client::TCP_Client | ( | bool | enable_exception | ) |
TCP_Client::~TCP_Client | ( | ) |
void TCP_Client::connect | ( | string | ip, | |
string | port | |||
) |
void TCP_Client::disconnect | ( | void | ) |
Definition at line 58 of file socket.cpp.
References buf, fd, and free().
Referenced by ~TCP_Client().
void TCP_Client::send | ( | const string * | data, | |
int | opt = 0 | |||
) |
void TCP_Client::send | ( | const string | data, | |
int | opt = 0 | |||
) |
void TCP_Client::send | ( | void * | data, | |
int | len, | |||
int | opt = 0 | |||
) |
void TCP_Client::recv | ( | string & | r, | |
int | opt = 0 | |||
) |
bool TCP_Client::ex [protected] |
int TCP_Client::fd [protected] |
Definition at line 21 of file socket.h.
Referenced by connect(), disconnect(), recv(), send(), and TCP_Client().
char* TCP_Client::buf [protected] |