TAO  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
TAO_HTTP_Handler Class Reference

#include <HTTP_Handler.h>

Inheritance diagram for TAO_HTTP_Handler:
Inheritance graph
Collaboration diagram for TAO_HTTP_Handler:
Collaboration graph

Public Member Functions

 TAO_HTTP_Handler (void)
 Null constructor, insures that it works properly with Connector. More...
 
 TAO_HTTP_Handler (ACE_Message_Block *mb, ACE_TCHAR *filename)
 Always use this constructor to make HTTP_Handlers. More...
 
size_t byte_count (void) const
 returns the number of bytes read/written in the last operation. More...
 
virtual int open (void *=0)
 Activate this instance of the <HTTP_Handler> More...
 
virtual int close (u_long flags=0)
 Close down the Blob. More...
 
 ~TAO_HTTP_Handler (void)
 
- Public Member Functions inherited from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >
virtual int handle_timeout (const ACE_Time_Value &time, const void *)
 
- Public Member Functions inherited from ACE_Task< SYNCH_TRAITS >
 ACE_Task (ACE_Thread_Manager *thr_mgr=0, ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > *mq=0)
 
virtual ~ACE_Task (void)
 
ACE_Message_Queue
< ACE_SYNCH_USE, TIME_POLICY > * 
msg_queue (void)
 
void msg_queue (ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > *)
 
ACE_Time_Value_T< TIME_POLICY > gettimeofday (void) const
 
void set_time_policy (TIME_POLICY const &time_policy)
 
int putq (ACE_Message_Block *, ACE_Time_Value *timeout=0)
 
int getq (ACE_Message_Block *&mb, ACE_Time_Value *timeout=0)
 
int ungetq (ACE_Message_Block *, ACE_Time_Value *timeout=0)
 
int reply (ACE_Message_Block *mb, ACE_Time_Value *tv=0)
 
int put_next (ACE_Message_Block *msg, ACE_Time_Value *timeout=0)
 
const ACE_TCHARname (void) const
 
ACE_Task< ACE_SYNCH_USE,
TIME_POLICY > * 
next (void)
 
void next (ACE_Task< ACE_SYNCH_USE, TIME_POLICY > *)
 
ACE_Task< ACE_SYNCH_USE,
TIME_POLICY > * 
sibling (void)
 
ACE_Module< ACE_SYNCH_USE,
TIME_POLICY > * 
module (void) const
 
int flush (u_long flag=ACE_Task_Flags::ACE_FLUSHALL)
 
void water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds, size_t)
 
void dump (void) const
 

Protected Types

enum  { MAX_HEADER_SIZE = 2048, MTU = BUFSIZ }
 

Protected Member Functions

virtual int send_request (void)
 
virtual int receive_reply (void)
 

Protected Attributes

ACE_Message_Blockmb_
 
ACE_TCHARfilename_
 
size_t bytecount_
 

Additional Inherited Members

- Public Attributes inherited from ACE_Task< SYNCH_TRAITS >
ACE_Message_Queue
< ACE_SYNCH_USE, TIME_POLICY > * 
msg_queue_
 
bool delete_msg_queue_
 
ACE_Module< ACE_SYNCH_USE,
TIME_POLICY > * 
mod_
 
ACE_Task< ACE_SYNCH_USE,
TIME_POLICY > * 
next_
 
 ACE_ALLOC_HOOK_DECLARE
 

Detailed Description

class to retrieve data via HTTP

Member Enumeration Documentation

anonymous enum
protected
Enumerator
MAX_HEADER_SIZE 

The handler assumes that the first 2048 bytes of a server response contains the header

MTU 

set the MAX_TRANSMISSION_UNIT (MTU) = BUFSIZ as defined by OS

Constructor & Destructor Documentation

TAO_HTTP_Handler::TAO_HTTP_Handler ( void  )

Null constructor, insures that it works properly with Connector.

TAO_HTTP_Handler::TAO_HTTP_Handler ( ACE_Message_Block mb,
ACE_TCHAR filename 
)

Always use this constructor to make HTTP_Handlers.

TAO_HTTP_Handler::~TAO_HTTP_Handler ( void  )

Member Function Documentation

size_t TAO_HTTP_Handler::byte_count ( void  ) const

returns the number of bytes read/written in the last operation.

int TAO_HTTP_Handler::close ( u_long  flags = 0)
virtual

Close down the Blob.

int TAO_HTTP_Handler::open ( void *  = 0)
virtual

Activate this instance of the <HTTP_Handler>

int TAO_HTTP_Handler::receive_reply ( void  )
protectedvirtual

Reimplemented in TAO_HTTP_Reader.

int TAO_HTTP_Handler::send_request ( void  )
protectedvirtual

Reimplemented in TAO_HTTP_Reader.

Member Data Documentation

size_t TAO_HTTP_Handler::bytecount_
protected
ACE_TCHAR* TAO_HTTP_Handler::filename_
protected
ACE_Message_Block* TAO_HTTP_Handler::mb_
protected

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