Skip to content

Commit

Permalink
Adapt to boost 1.66.0 & Bump 0.6.1
Browse files Browse the repository at this point in the history
close #21
  • Loading branch information
GreaterFire committed Jan 16, 2018
1 parent 1de798a commit 5a28b27
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/clientsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ClientSession::ClientSession(const Config &config, boost::asio::io_service &io_s
out_socket(io_service, ssl_context),
status(HANDSHAKE) {}

boost::asio::basic_socket<tcp, boost::asio::stream_socket_service<tcp> >& ClientSession::accept_socket() {
tcp::socket& ClientSession::accept_socket() {
return in_socket;
}

Expand Down
2 changes: 1 addition & 1 deletion src/clientsession.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ClientSession : public Session {
void out_sent();
public:
ClientSession(const Config &config, boost::asio::io_service &io_service, boost::asio::ssl::context &ssl_context);
boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >& accept_socket();
boost::asio::ip::tcp::socket& accept_socket();
void start();
};

Expand Down
4 changes: 2 additions & 2 deletions src/serversession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ ServerSession::ServerSession(const Config &config, boost::asio::io_service &io_s
out_socket(io_service),
status(HANDSHAKE) {}

boost::asio::basic_socket<tcp, boost::asio::stream_socket_service<tcp> >& ServerSession::accept_socket() {
return in_socket.lowest_layer();
tcp::socket& ServerSession::accept_socket() {
return (tcp::socket&)in_socket.lowest_layer();
}

void ServerSession::start() {
Expand Down
2 changes: 1 addition & 1 deletion src/serversession.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ServerSession : public Session {
void out_sent();
public:
ServerSession(const Config &config, boost::asio::io_service &io_service, boost::asio::ssl::context &ssl_context);
boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >& accept_socket();
boost::asio::ip::tcp::socket& accept_socket();
void start();
};

Expand Down
2 changes: 1 addition & 1 deletion src/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Session : public std::enable_shared_from_this<Session> {
boost::asio::ip::tcp::endpoint in_endpoint;
public:
Session(const Config &config, boost::asio::io_service &io_service);
virtual boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >& accept_socket() = 0;
virtual boost::asio::ip::tcp::socket& accept_socket() = 0;
virtual void start() = 0;
};

Expand Down
2 changes: 1 addition & 1 deletion src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <string>
using namespace std;

const string Version::version("0.6.0");
const string Version::version("0.6.1");

string Version::get_version() {
return version;
Expand Down

0 comments on commit 5a28b27

Please sign in to comment.