#include <HTTP_Handler.h>
Inheritance diagram for TAO_HTTP_Handler:


Public Member Functions | |
| TAO_HTTP_Handler (void) | |
| Null constructor, insures that it works properly with Connector. | |
| TAO_HTTP_Handler (ACE_Message_Block *mb, ACE_TCHAR *filename) | |
| Always use this constructor to make HTTP_Handlers. | |
| size_t | byte_count (void) const |
| returns the number of bytes read/written in the last operation. | |
| virtual int | open (void *=0) |
| Activate this instance of the . | |
| virtual int | close (u_long flags=0) |
| Close down the Blob. | |
| ~TAO_HTTP_Handler (void) | |
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_Block * | mb_ |
| ACE_TCHAR * | filename_ |
| size_t | bytecount_ |
Definition at line 41 of file HTTP_Handler.h.
|
|
Definition at line 69 of file HTTP_Handler.h.
00070 {
00071 /// The handler assumes that the first 2048 bytes of a server response
00072 /// contains the header
00073 MAX_HEADER_SIZE = 2048,
00074
00075 /// set the MAX_TRANSMISSION_UNIT (MTU) = BUFSIZ as defined by OS
00076 MTU = BUFSIZ
00077 };
|
|
|
Null constructor, insures that it works properly with Connector.
Definition at line 13 of file HTTP_Handler.cpp.
00014 {
00015 }
|
|
||||||||||||
|
Always use this constructor to make HTTP_Handlers.
Definition at line 17 of file HTTP_Handler.cpp.
00018 : 00019 mb_ (mb), 00020 filename_ (ACE_OS::strdup (filename)), 00021 bytecount_ (0) 00022 { 00023 } |
|
|
Definition at line 25 of file HTTP_Handler.cpp. References ACE_OS::free().
00026 {
00027 if (this->filename_)
00028 {
00029 ACE_OS::free (this->filename_);
00030 filename_ = 0;
00031 }
00032 }
|
|
|
returns the number of bytes read/written in the last operation.
Definition at line 65 of file HTTP_Handler.cpp. References bytecount_. Referenced by TAO_HTTP_Client::read().
00066 {
00067 return bytecount_;
00068 }
|
|
|
Close down the Blob.
Reimplemented from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >. Definition at line 47 of file HTTP_Handler.cpp.
00048 {
00049 return 0;
00050 }
|
|
|
Activate this instance of the .
Reimplemented from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >. Definition at line 35 of file HTTP_Handler.cpp. References ACE_ERROR_RETURN, LM_ERROR, receive_reply(), and send_request().
00036 {
00037 if (this->send_request () != 0)
00038 ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "TAO_HTTP_Handler::open():send_request failed\n"), -1);
00039
00040 if (this->receive_reply () != 0)
00041 ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "TAO_HTTP_Handler::open():receive_reply failed\n"), -1);
00042 return 0;
00043
00044 }
|
|
|
Reimplemented in TAO_HTTP_Reader. Definition at line 59 of file HTTP_Handler.cpp. Referenced by open().
00060 {
00061 return -1;
00062 }
|
|
|
Reimplemented in TAO_HTTP_Reader. Definition at line 53 of file HTTP_Handler.cpp. Referenced by open().
00054 {
00055 return -1;
00056 }
|
|
|
Definition at line 68 of file HTTP_Handler.h. Referenced by byte_count(). |
|
|
Definition at line 67 of file HTTP_Handler.h. |
|
|
Definition at line 66 of file HTTP_Handler.h. |
1.3.6