summaryrefslogtreecommitdiff
path: root/apps/JAWS/clients/Blobby/Blob_Handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/JAWS/clients/Blobby/Blob_Handler.h')
-rw-r--r--apps/JAWS/clients/Blobby/Blob_Handler.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/apps/JAWS/clients/Blobby/Blob_Handler.h b/apps/JAWS/clients/Blobby/Blob_Handler.h
index d58202afe5a..a55e0b68ee2 100644
--- a/apps/JAWS/clients/Blobby/Blob_Handler.h
+++ b/apps/JAWS/clients/Blobby/Blob_Handler.h
@@ -5,24 +5,29 @@
//
// = LIBRARY
// JAWS
-//
+//
// = FILENAME
// Blob.h
//
// = DESCRIPTION
// ACE_Blob_Handler is a base class for ACE_Blob_Reader and
// ACE_Blob_Writer which are created in response to calls to
-// read/write, as appropriate
+// read/write, as appropriate
//
// = AUTHOR
// Prashant Jain and Sumedh Mungee
-//
+//
//============================================================================
-#if !defined (ACE_BLOB_HANDLER_H)
+#ifndef ACE_BLOB_HANDLER_H
#define ACE_BLOB_HANDLER_H
#include "ace/OS.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "ace/SOCK_Stream.h"
#include "ace/Svc_Handler.h"
#include "ace/Message_Block.h"
@@ -32,7 +37,7 @@ class ACE_Blob_Handler : public ACE_Svc_Handler <ACE_SOCK_STREAM, ACE_NULL_SYNCH
// Blob 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
@@ -53,7 +58,7 @@ public:
virtual int close (u_long flags = 0);
// Close down the Blob
-
+
~ACE_Blob_Handler (void);
protected:
@@ -65,7 +70,7 @@ protected:
size_t offset_;
char *filename_;
int bytecount_;
- enum
+ enum
{
MAX_HEADER_SIZE = 2048
// The handler assumes that the first 2048 bytes of a server response
@@ -76,10 +81,10 @@ protected:
class ACE_Blob_Reader : public ACE_Blob_Handler
{
public:
- ACE_Blob_Reader (ACE_Message_Block *mb,
- size_t length,
- size_t offset,
- char *filename,
+ ACE_Blob_Reader (ACE_Message_Block *mb,
+ size_t length,
+ size_t offset,
+ char *filename,
char *request_prefix = "GET",
char *request_suffix = "HTTP/1.0\r\n\r\n");
@@ -93,9 +98,9 @@ private:
class ACE_Blob_Writer : public ACE_Blob_Handler
{
public:
- ACE_Blob_Writer (ACE_Message_Block *mb,
- size_t length,
- size_t offset,
+ ACE_Blob_Writer (ACE_Message_Block *mb,
+ size_t length,
+ size_t offset,
char *filename,
char *request_prefix = "PUT",
char *request_suffix = "HTTP/1.0\nContent-length:");