/[resiprocate]/main/sip/resiprocate/dum/test/curlHttp/CurlHttpProvider.hxx
ViewVC logotype

Contents of /main/sip/resiprocate/dum/test/curlHttp/CurlHttpProvider.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4601 - (show annotations) (download)
Thu May 12 01:10:49 2005 UTC (14 years, 6 months ago) by derek
File size: 1199 byte(s)
merged identity branch(4598) into main--removing identity branch after this
1 #ifndef RESIP_CurlHttpProvider
2 #define RESIP_CurlHttpProvider
3
4
5 #include "resiprocate/external/HttpProvider.hxx"
6 #include "resiprocate/os/ThreadIf.hxx"
7 #include "resiprocate/GenericUri.hxx"
8 #include "resiprocate/os/Data.hxx"
9
10 namespace resip
11 {
12
13 class CurlHttpProviderFactory;
14
15 class CurlHttpProvider : public HttpProvider
16 {
17 public:
18 CurlHttpProvider();
19 virtual ~CurlHttpProvider();
20 virtual void get(const GenericUri& target, const Data& tid, TransactionUser& tu);
21 private:
22 class RequestThread : public ThreadIf
23 {
24 public:
25 RequestThread(const GenericUri& target, const Data& tid, TransactionUser& tu);
26 virtual void thread();
27 virtual ~RequestThread();
28 private:
29 GenericUri mTarget;
30 Data mTid;
31 TransactionUser& mTransactionUser;
32 Data mX509Blob;
33 DataStream mStream;
34 static int curlCallback(void *ptr, size_t size, size_t nmemb, void *stream);
35 };
36 };
37
38 class CurlHttpProviderFactory : public HttpProviderFactory
39 {
40 public:
41 virtual CurlHttpProvider* createHttpProvider();
42 virtual ~CurlHttpProviderFactory(){}
43 };
44 }
45
46 #endif

Properties

Name Value
svn:eol-style LF

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27