Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

HTTPClient Class Reference

List of all members.

Public Member Functions

 HTTPClient ()
bool connect (const string &server, int port)
bool send (const string &data)
bool read (string &result)
bool test_connection ()
void close ()
bool is_closed () const
 PT (Connection) _connection

Public Attributes

QueuedConnectionManager _manager
QueuedConnectionReader _reader
ConnectionWriter _writer

Constructor & Destructor Documentation

HTTPClient::HTTPClient  ) 
 

Definition at line 50 of file test_proxy.cxx.

References _reader, _writer, and ConnectionWriter::set_raw_mode().


Member Function Documentation

void HTTPClient::close  ) 
 

Definition at line 112 of file test_proxy.cxx.

References _manager, NULL, and test_connection().

Referenced by main().

bool HTTPClient::connect const string &  server,
int  port
 

Definition at line 59 of file test_proxy.cxx.

References _manager, _reader, and test_connection().

Referenced by main().

bool HTTPClient::is_closed  )  const
 

Definition at line 121 of file test_proxy.cxx.

Referenced by main().

HTTPClient::PT Connection   ) 
 

Referenced by test_connection().

bool HTTPClient::read string &  result  ) 
 

Definition at line 80 of file test_proxy.cxx.

References _reader, QueuedConnectionReader::data_available(), QueuedConnectionReader::get_data(), Datagram::get_message(), and test_connection().

Referenced by main().

bool HTTPClient::send const string &  data  ) 
 

Definition at line 73 of file test_proxy.cxx.

References _writer, data, ConnectionWriter::send(), and test_connection().

Referenced by main().

bool HTTPClient::test_connection  ) 
 

Definition at line 96 of file test_proxy.cxx.

References _manager, c, QueuedConnectionManager::get_reset_connection(), NULL, PT(), and QueuedConnectionManager::reset_connection_available().

Referenced by close(), connect(), read(), and send().


Member Data Documentation

QueuedConnectionManager HTTPClient::_manager
 

Definition at line 43 of file test_proxy.cxx.

Referenced by close(), connect(), and test_connection().

QueuedConnectionReader HTTPClient::_reader
 

Definition at line 44 of file test_proxy.cxx.

Referenced by connect(), HTTPClient(), and read().

ConnectionWriter HTTPClient::_writer
 

Definition at line 45 of file test_proxy.cxx.

Referenced by HTTPClient(), and send().


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 00:12:34 2003 for Panda by doxygen1.3