Client Class Reference

Generic TCP client class. More...

#include <socket.hpp>

Inheritance diagram for Client:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Client ()
 Client (IPAddress addr, uint16_t port)
 Client (void *)
 Client (SOCKET, sockaddr_in, void *)
std::string Recv (std::size_t length)
void Send (const std::string &data)
bool Connected ()
IPAddress GetRemoteAddr ()
bool Close ()
virtual ~Client ()

Protected Attributes

bool connected
SOCKET sock
sockaddr_in sin
std::string send_buffer
std::string recv_buffer
std::size_t send_buffer_max
void * server

Friends

class Server


Detailed Description

Generic TCP client class.

Constructor & Destructor Documentation

Client::Client (  ) 

Client::Client ( IPAddress  addr,
uint16_t  port 
)

Client::Client ( void *  server  ) 

Client::Client ( SOCKET  sock,
sockaddr_in  sin,
void *  server 
)

Client::~Client (  )  [virtual]


Member Function Documentation

std::string Client::Recv ( std::size_t  length  ) 

void Client::Send ( const std::string &  data  ) 

bool Client::Connected (  ) 

IPAddress Client::GetRemoteAddr (  ) 

bool Client::Close (  ) 


Friends And Related Function Documentation

friend class Server [friend]


Member Data Documentation

bool Client::connected [protected]

SOCKET Client::sock [protected]

sockaddr_in Client::sin [protected]

std::string Client::send_buffer [protected]

std::string Client::recv_buffer [protected]

std::size_t Client::send_buffer_max [protected]

void* Client::server [protected]


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

Generated on Sun Apr 5 20:28:19 2009 for EOServ by  doxygen 1.5.7.1