TAO  2.1.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TAO_HTTP_Reader Class Reference

#include <HTTP_Handler.h>

Inheritance diagram for TAO_HTTP_Reader:
Inheritance graph
Collaboration diagram for TAO_HTTP_Reader:
Collaboration graph

Public Member Functions

 TAO_HTTP_Reader (ACE_Message_Block *mb, ACE_TCHAR *filename, const char *request_prefix="GET", const char *request_suffix="HTTP/1.0\r\nAccept: HTTP/1.0\r\n\r\n")
 
- Public Member Functions inherited from TAO_HTTP_Handler
 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 >
 ACE_Svc_Handler (ACE_Thread_Manager *thr_mgr=0, ACE_Message_Queue< ACE_SYNCH_USE > *mq=0, ACE_Reactor *reactor=ACE_Reactor::instance())
 
virtual ~ACE_Svc_Handler (void)
 
virtual int idle (u_long flags=0)
 
virtual ACE_Recyclable_State recycle_state (void) const
 
virtual int recycle_state (ACE_Recyclable_State new_state)
 
virtual void cleanup_hint (void **act_holder=0)
 
virtual int init (int argc, ACE_TCHAR *argv[])
 
virtual int fini (void)
 
virtual int info (ACE_TCHAR **info_string, size_t length) const
 
virtual int handle_close (ACE_HANDLE=ACE_INVALID_HANDLE, ACE_Reactor_Mask=ACE_Event_Handler::ALL_EVENTS_MASK)
 
virtual int handle_timeout (const ACE_Time_Value &time, const void *)
 
virtual ACE_HANDLE get_handle (void) const
 
virtual void set_handle (ACE_HANDLE)
 
ACE_PEER_STREAMpeer (void) const
 
void * operator new (size_t n)
 
void * operator new (size_t n, void *p)
 
virtual void destroy (void)
 
void operator delete (void *)
 
void operator delete (void *, void *)
 
void shutdown (void)
 
void dump (void) const
 
virtual void recycler (ACE_Connection_Recycling_Strategy *recycler, const void *recycling_act)
 
virtual
ACE_Connection_Recycling_Strategy
recycler (void) const
 
virtual const void * recycling_act (void) const
 
virtual int recycle (void *=0)
 
- Public Member Functions inherited from ACE_Task< ACE_SYNCH_USE >
 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
 

Private Member Functions

int send_request (void)
 
int receive_reply (void)
 

Private Attributes

const char * request_prefix_
 
const char * request_suffix_
 

Additional Inherited Members

- Public Types inherited from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >
typedef ACE_PEER_STREAM_ADDR addr_type
 
typedef ACE_PEER_STREAM stream_type
 
- Public Attributes inherited from ACE_Task< ACE_SYNCH_USE >
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
 
- Protected Types inherited from TAO_HTTP_Handler
enum  { MAX_HEADER_SIZE = 2048, MTU = BUFSIZ }
 
- Protected Attributes inherited from TAO_HTTP_Handler
ACE_Message_Blockmb_
 
ACE_TCHARfilename_
 
size_t bytecount_
 

Constructor & Destructor Documentation

TAO_HTTP_Reader::TAO_HTTP_Reader ( ACE_Message_Block mb,
ACE_TCHAR filename,
const char *  request_prefix = "GET",
const char *  request_suffix = "HTTP/1.0\r\nAccept: HTTP/1.0\r\n\r\n" 
)

Member Function Documentation

int TAO_HTTP_Reader::receive_reply ( void  )
privatevirtual

Reimplemented from TAO_HTTP_Handler.

int TAO_HTTP_Reader::send_request ( void  )
privatevirtual

Reimplemented from TAO_HTTP_Handler.

Member Data Documentation

const char* TAO_HTTP_Reader::request_prefix_
private
const char* TAO_HTTP_Reader::request_suffix_
private

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