50 #ifndef _CurlInteractiveChannel_H_
51 #define _CurlInteractiveChannel_H_
53 #include "../IInteractiveChannel.h"
55 #include "system/compat/SystemCompat.h"
56 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
58 #include "system/thread/Thread.h"
59 using namespace ::br::pucrio::telemidia::ginga::core::system::thread;
61 #include "curl/curl.h"
84 static pthread_mutex_t mutex;
85 static bool mutexInit;
92 void setSourceTarget(
string url);
93 void setTarget(FILE* fd);
94 void setTarget(
char* buffer);
101 string userAgent=
"");
107 static size_t writeCallBack(
108 void* ptr,
size_t size,
size_t nmemb,
void* stream);
110 bool positiveResponse(
long* respCode);
111 FILE* getLocalFileDescriptor();
Definition: IInteractiveChannel.h:66
Definition: IInteractiveChannelListener.h:61
Definition: CurlInteractiveChannel.h:73