TAO  2.3.3
Public Member Functions | Private Attributes | List of all members
TAO_HTTP_Client Class Reference

HTTP_Client is intended to provide application API to classes that wish to do network i/o at a very high level of abstraction. More...

#include <HTTP_Client.h>

Collaboration diagram for TAO_HTTP_Client:
Collaboration graph
[legend]

Public Member Functions

 TAO_HTTP_Client (void)
 
 ~TAO_HTTP_Client (void)
 
int open (const ACE_TCHAR *filename, const ACE_TCHAR *hostname=ACE_DEFAULT_SERVER_HOST, u_short port=80)
 
int read (ACE_Message_Block *mb)
 
int close ()
 Frees memory allocated for filename. More...
 

Private Attributes

ACE_INET_Addr inet_addr_
 Store the internet address of the server. More...
 
ACE_TCHARfilename_
 The filename. More...
 
ACE_Connector< TAO_HTTP_Handler, ACE_SOCK_CONNECTORconnector_
 The connector endpoint to initiate the client connection. More...
 

Detailed Description

HTTP_Client is intended to provide application API to classes that wish to do network i/o at a very high level of abstraction.

This class provides the ability to retrieve data from the network, of specified length and offset, and potentially use any protocol "under the hood" to do so. It currently uses HTTP. See HTTP_Handler also.

Constructor & Destructor Documentation

TAO_HTTP_Client::TAO_HTTP_Client ( void  )
TAO_HTTP_Client::~TAO_HTTP_Client ( void  )

Member Function Documentation

int TAO_HTTP_Client::close ( void  )

Frees memory allocated for filename.

int TAO_HTTP_Client::open ( const ACE_TCHAR filename,
const ACE_TCHAR hostname = ACE_DEFAULT_SERVER_HOST,
u_short  port = 80 
)

Initializes the class with the given filename, hostname and port. it should be called with the filename, before any read/write calls

int TAO_HTTP_Client::read ( ACE_Message_Block mb)

Starts a connection, and reads a file from the server into Message_Block mb

Member Data Documentation

ACE_Connector<TAO_HTTP_Handler, ACE_SOCK_CONNECTOR> TAO_HTTP_Client::connector_
private

The connector endpoint to initiate the client connection.

ACE_TCHAR* TAO_HTTP_Client::filename_
private

The filename.

ACE_INET_Addr TAO_HTTP_Client::inet_addr_
private

Store the internet address of the server.


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