pion-net

HTTP Client Request Response with pion-net c++

怎甘沉沦 提交于 2020-01-12 10:30:09
问题 I want to create a simple HTTPClient with pion-net (Pion-net leverages boost::asio.). Boot Version 1.49 Pion-net Version 4.11 My client should just be a able to: send a HTTP Request (this is working) receive the HTTP Response (not working) asynchronous code is not a must, synchronous would be ok This is what I got: #include <iostream> #include "boost/asio.hpp" #include "boost/thread.hpp" #include "pion/net/HTTPRequestWriter.hpp" #include "pion/net/HTTPResponseReader.hpp" void

HTTP Client Request Response with pion-net c++

我的未来我决定 提交于 2019-12-03 20:36:39
I want to create a simple HTTPClient with pion-net (Pion-net leverages boost::asio.). Boot Version 1.49 Pion-net Version 4.11 My client should just be a able to: send a HTTP Request (this is working) receive the HTTP Response (not working) asynchronous code is not a must, synchronous would be ok This is what I got: #include <iostream> #include "boost/asio.hpp" #include "boost/thread.hpp" #include "pion/net/HTTPRequestWriter.hpp" #include "pion/net/HTTPResponseReader.hpp" void FinishedResponseReading(pion::net::HTTPResponsePtr httpResponsePtr, pion::net::TCPConnectionPtr tcpConnectionPtr, const