[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-filesystem-cvs
Subject:    [Filesystem-cvs] filesystem/httpshim/pub httpfileboj.h,1.2,1.3
From:       qluo () helixcommunity ! org
Date:       2013-04-03 17:30:18
[Download RAW message or body]

Update of /cvsroot/filesystem/filesystem/httpshim/pub
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv28442/pub

Modified Files:
	httpfileboj.h 
Log Message:
file object wrapper implementation

Index: httpfileboj.h
===================================================================
RCS file: /cvsroot/filesystem/filesystem/httpshim/pub/httpfileboj.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- httpfileboj.h	27 Mar 2013 05:02:41 -0000	1.2
+++ httpfileboj.h	3 Apr 2013 17:30:01 -0000	1.3
@@ -35,6 +35,15 @@
 
 #include "hxprdnld.h"
 
+enum HttpMethodType
+{
+    HTTP_GET,
+    HTTP_POST,
+    HTTP_DELETE,
+    HTTP_PUT,
+    HTTP_HEAD
+};
+
 class HTTPFileObject : public IHXFileObject,
                        public IHXFileStat,
                        public IHXRequestHandler,
@@ -74,17 +83,29 @@
     void                            InitObject(IUnknown* pContext, IHXValues* pOptions);
 
 private:
+    HX_RESULT                       ParseRequestURL();
+    HX_RESULT                       ParseRequestHeaders();
+    HX_RESULT                       InitHttpDriver();
+    void                            TerminateHttpDriver();
+    HX_RESULT                       StartHttpRequest();
+
     INT32                           m_lRefCount;
+    HX_RESULT                       m_LastError;
     IUnknown*                       m_pContext;
+    HttpMethodType                  m_eHttpMethod;
     IHXValues*                      m_pOptions;
     IHXRequest*                     m_pRequest;
     IHXFileResponse*                m_pFileResponse;
     CHXSimpleList*                  m_pPDSObserverList;
     UINT32                          m_ulStatusUpdateGranularityInMsec;
 
+    UINT32                          m_ulPostSize;
+    IHXBuffer*                      m_pPostBuffer;
+
     HXBOOL                          m_bInitDonePending;
     HXBOOL                          m_bResponseHeaderReady;
     UINT32                          m_ulPendingReadSize;
     HXBOOL                          m_bKnowContentSize;
     UINT32                          m_ulContentSize;
+    UINT32                          m_ulOffset;
 };


_______________________________________________
Filesystem-cvs mailing list
Filesystem-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/filesystem-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic