Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_TCPConnection Class Reference

#include <tcp_connection.h>

Inheritance diagram for CL_TCPConnection:

CL_IODevice List of all members.

Public Member Functions

 CL_TCPConnection ()
 Construction:.
 CL_TCPConnection (int socket_handle)
 ~CL_TCPConnection ()
CL_Eventget_read_event ()
 Attributes:.
CL_Eventget_write_event ()
CL_Eventget_exception_event ()
void connect (const CL_String &server, const CL_String &port)
 Operations:.
void connect (const CL_String &server, const CL_String &port, const CL_String &source_address, const CL_String &source_port)
int send (const void *data, int len, bool send_all=true)
 Operations:.
int receive (void *data, int len, bool receive_all=true)
int peek (void *data, int len)
void send_line (const CL_StringA &line)
CL_StringA receive_line ()

Private Attributes

int handle
 Implementation:.
CL_SocketEventHandlersocket_event_handler
CL_Eventread_event
CL_Eventwrite_event
CL_Eventexception_event

Constructor & Destructor Documentation

CL_TCPConnection::CL_TCPConnection  ) 
 

Construction:.

Definition at line 52 of file tcp_connection.cpp.

References exception_event, handle, read_event, socket_event_handler, TEXT, and write_event.

CL_TCPConnection::CL_TCPConnection int  socket_handle  ) 
 

Definition at line 78 of file tcp_connection.cpp.

References TEXT.

CL_TCPConnection::~CL_TCPConnection  ) 
 

Definition at line 91 of file tcp_connection.cpp.

References exception_event, handle, read_event, socket_event_handler, and write_event.


Member Function Documentation

void CL_TCPConnection::connect const CL_String &  server,
const CL_String &  port,
const CL_String &  source_address,
const CL_String &  source_port
 

void CL_TCPConnection::connect const CL_String &  server,
const CL_String &  port
 

Operations:.

Definition at line 125 of file tcp_connection.cpp.

References handle, TEXT, CL_StringHelp::text_to_int(), and CL_StringHelp::text_to_local8().

Referenced by CL_DNSResolver::perform_query().

CL_Event * CL_TCPConnection::get_exception_event  ) 
 

Definition at line 117 of file tcp_connection.cpp.

References exception_event.

CL_Event * CL_TCPConnection::get_read_event  ) 
 

Attributes:.

Definition at line 107 of file tcp_connection.cpp.

References read_event.

Referenced by CL_DNSResolver::perform_query().

CL_Event * CL_TCPConnection::get_write_event  ) 
 

Definition at line 112 of file tcp_connection.cpp.

References write_event.

int CL_TCPConnection::peek void *  data,
int  len
[virtual]
 

Implements CL_IODevice.

Definition at line 185 of file tcp_connection.cpp.

References handle, and TEXT.

Referenced by receive_line().

int CL_TCPConnection::receive void *  data,
int  len,
bool  receive_all = true
[virtual]
 

Implements CL_IODevice.

Definition at line 168 of file tcp_connection.cpp.

References handle, and TEXT.

Referenced by CL_DNSResolver::perform_query(), and receive_line().

CL_StringA CL_TCPConnection::receive_line  ) 
 

Definition at line 202 of file tcp_connection.cpp.

References peek(), receive(), and TEXT.

int CL_TCPConnection::send const void *  data,
int  len,
bool  send_all = true
[virtual]
 

Operations:.

Implements CL_IODevice.

Definition at line 151 of file tcp_connection.cpp.

References handle, and TEXT.

Referenced by CL_DNSResolver::perform_query(), and send_line().

void CL_TCPConnection::send_line const CL_StringA line  ) 
 

Definition at line 196 of file tcp_connection.cpp.

References send().


Member Data Documentation

CL_Event* CL_TCPConnection::exception_event [private]
 

Definition at line 93 of file tcp_connection.h.

Referenced by CL_TCPConnection(), get_exception_event(), and ~CL_TCPConnection().

int CL_TCPConnection::handle [private]
 

Implementation:.

Definition at line 84 of file tcp_connection.h.

Referenced by CL_TCPConnection(), connect(), peek(), receive(), send(), and ~CL_TCPConnection().

CL_Event* CL_TCPConnection::read_event [private]
 

Definition at line 89 of file tcp_connection.h.

Referenced by CL_TCPConnection(), get_read_event(), and ~CL_TCPConnection().

CL_SocketEventHandler* CL_TCPConnection::socket_event_handler [private]
 

Definition at line 87 of file tcp_connection.h.

Referenced by CL_TCPConnection(), and ~CL_TCPConnection().

CL_Event* CL_TCPConnection::write_event [private]
 

Definition at line 91 of file tcp_connection.h.

Referenced by CL_TCPConnection(), get_write_event(), and ~CL_TCPConnection().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:18 2005 for npcore by  doxygen 1.4.1