This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

boost-1.47-get_io_service.patch

By: Ranguvar on Aug 13th, 2011  |  syntax: Diff  |  size: 2.25 KB  |  views: 203  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- SSLConnectionManager.cpp.orig       2010-03-10 18:06:30.000000000 -0500
  2. +++ SSLConnectionManager.cpp    2011-08-13 00:48:16.393877911 -0400
  3. @@ -44,7 +44,7 @@ SSLConnectionManager::SSLConnectionManag
  4.  }
  5.  
  6.  void SSLConnectionManager::acceptIncomingConnection() {
  7. -  boost::shared_ptr<ip::tcp::socket> socket(new ip::tcp::socket(acceptor.io_service()));
  8. +  boost::shared_ptr<ip::tcp::socket> socket(new ip::tcp::socket(acceptor.get_io_service()));
  9.  
  10.    acceptor.async_accept(*socket, boost::bind(&SSLConnectionManager::handleClientConnection,
  11.                                              this, socket, placeholders::error));
  12. @@ -76,7 +76,7 @@ void SSLConnectionManager::shuttleConnec
  13.                                              ip::tcp::endpoint &destination)
  14.  
  15.  {
  16. -  Bridge::ptr bridge = RawBridge::create(clientSocket, destination, acceptor.io_service());
  17. +  Bridge::ptr bridge = RawBridge::create(clientSocket, destination, acceptor.get_io_service());
  18.    bridge->shuttle();
  19.  }
  20.  
  21. @@ -134,7 +134,7 @@ void SSLConnectionManager::interceptSSL(
  22.                                         ip::tcp::endpoint &destination,
  23.                                         bool wildcardOK)
  24.  {
  25. -  ip::tcp::socket serverSocket(acceptor.io_service());
  26. +  ip::tcp::socket serverSocket(acceptor.get_io_service());
  27.    boost::system::error_code error;
  28.    serverSocket.connect(destination, error);
  29.  
  30. --- http/HttpConnectionManager.cpp.orig 2011-08-13 00:52:56.160540641 -0400
  31. +++ http/HttpConnectionManager.cpp      2011-08-13 00:53:23.617874559 -0400
  32. @@ -53,7 +53,7 @@ HttpConnectionManager::HttpConnectionMan
  33.  }
  34.  
  35.  void HttpConnectionManager::acceptIncomingConnection() {
  36. -  boost::shared_ptr<ip::tcp::socket> socket(new ip::tcp::socket(acceptor_.io_service()));
  37. +  boost::shared_ptr<ip::tcp::socket> socket(new ip::tcp::socket(acceptor_.get_io_service()));
  38.  
  39.    acceptor_.async_accept(*socket, boost::bind(&HttpConnectionManager::handleClientConnection,
  40.                                               this, socket, placeholders::error));
  41. @@ -63,7 +63,7 @@ void HttpConnectionManager::acceptIncomi
  42.  void HttpConnectionManager::bridgeHttpRequest(boost::shared_ptr<ip::tcp::socket> socket,
  43.                                               ip::tcp::endpoint destination)
  44.  {
  45. -  Bridge::ptr bridge = HttpBridge::create(socket, acceptor_.io_service(),
  46. +  Bridge::ptr bridge = HttpBridge::create(socket, acceptor_.get_io_service(),
  47.                                           FingerprintManager::getInstance());
  48.    
  49.    bridge->getServerSocket().
clone this paste RAW Paste Data