summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-11-16 00:44:21 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-11-16 00:44:21 (GMT)
commitf33e8148fc6e214886a8b24fc9d743ee25da7d61 (patch)
tree84eedf9bb648756e42489d65ab634a0b98dc2326 /src/uscxml/plugins/invoker
parentb92c2f64953e8aabbf3644dc03524de048764c6a (diff)
downloaduscxml-f33e8148fc6e214886a8b24fc9d743ee25da7d61.zip
uscxml-f33e8148fc6e214886a8b24fc9d743ee25da7d61.tar.gz
uscxml-f33e8148fc6e214886a8b24fc9d743ee25da7d61.tar.bz2
Renamed nonsense curlReq to evhttpReq
Diffstat (limited to 'src/uscxml/plugins/invoker')
-rw-r--r--src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp4
-rw-r--r--src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
index d259e9a..1e0fced 100644
--- a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
+++ b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
@@ -119,12 +119,12 @@ bool HTTPServletInvoker::httpRecvRequest(const HTTPServer::Request& req) {
// evhttp_request_own(req.curlReq);
- _requests[toStr((uintptr_t)req.curlReq)] = req;
+ _requests[toStr((uintptr_t)req.evhttpReq)] = req;
Event event = req;
event.name = _callback;
- event.data.compound["reqId"] = Data(toStr((uintptr_t)req.curlReq), Data::VERBATIM);
+ event.data.compound["reqId"] = Data(toStr((uintptr_t)req.evhttpReq), Data::VERBATIM);
returnEvent(event);
return true;
diff --git a/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp b/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp
index c0a0a07..d4355b5 100644
--- a/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp
+++ b/src/uscxml/plugins/invoker/xhtml/XHTMLInvoker.cpp
@@ -69,8 +69,8 @@ bool XHTMLInvoker::httpRecvRequest(const HTTPServer::Request& req) {
if (iequals(req.data["type"].atom, "get")) {
// the long-polling GET
if (_longPoll) {
- evhttp_send_error(_longPoll.curlReq, 204, NULL);
- _longPoll.curlReq = NULL;
+ evhttp_send_error(_longPoll.evhttpReq, 204, NULL);
+ _longPoll.evhttpReq = NULL;
}
_longPoll = req;
if (!_outQueue.empty()) {
@@ -141,7 +141,7 @@ bool XHTMLInvoker::httpRecvRequest(const HTTPServer::Request& req) {
HTTPServer::reply(reply);
// queue invoke request for initial html
- _longPoll.curlReq = NULL;
+ _longPoll.evhttpReq = NULL;
_outQueue = std::deque<SendRequest>();
SendRequest sendReq(_invokeReq);
send(sendReq);
@@ -172,7 +172,7 @@ void XHTMLInvoker::send(const SendRequest& req) {
return;
}
reply(reqCopy, _longPoll);
- _longPoll.curlReq = NULL;
+ _longPoll.evhttpReq = NULL;
}
void XHTMLInvoker::reply(const SendRequest& req, const HTTPServer::Request& longPoll) {