TCP_Client Class Reference

#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


Detailed Description

Definition at line 9 of file socket.h.


Constructor & Destructor Documentation

TCP_Client::TCP_Client ( bool  enable_exception  ) 

Definition at line 29 of file socket.cpp.

References ex, and fd.

TCP_Client::~TCP_Client (  ) 

Definition at line 34 of file socket.cpp.

References disconnect().


Member Function Documentation

void TCP_Client::connect ( string  ip,
string  port 
)

Definition at line 38 of file socket.cpp.

References buf, fd, malloc(), and memset().

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 
)

Definition at line 67 of file socket.cpp.

References fd.

Referenced by send().

void TCP_Client::send ( const string  data,
int  opt = 0 
)

Definition at line 74 of file socket.cpp.

References fd, and send().

void TCP_Client::send ( void *  data,
int  len,
int  opt = 0 
)

Definition at line 83 of file socket.cpp.

References fd, and send().

void TCP_Client::recv ( string &  r,
int  opt = 0 
)

Definition at line 90 of file socket.cpp.

References buf, BUF_SIZE, and fd.


Field Documentation

bool TCP_Client::ex [protected]

Definition at line 20 of file socket.h.

Referenced by TCP_Client().

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]

Definition at line 22 of file socket.h.

Referenced by connect(), disconnect(), and recv().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 00:08:55 2008 for elphel by  doxygen 1.5.1