diff options
Diffstat (limited to 'src/mongo/util/net/listen.cpp')
-rw-r--r-- | src/mongo/util/net/listen.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/util/net/listen.cpp b/src/mongo/util/net/listen.cpp index 4cb97c9367e..1a7f0773588 100644 --- a/src/mongo/util/net/listen.cpp +++ b/src/mongo/util/net/listen.cpp @@ -34,7 +34,6 @@ #include "mongo/util/net/listen.h" -#include <boost/shared_ptr.hpp> #include "mongo/config.h" #include "mongo/db/server_options.h" @@ -75,7 +74,7 @@ namespace mongo { - using boost::shared_ptr; + using std::shared_ptr; using std::endl; using std::string; using std::vector; @@ -339,7 +338,7 @@ namespace mongo { log() << "connection accepted from " << from.toString() << " #" << myConnectionNumber << " (" << conns << word << " now open)" << endl; } - boost::shared_ptr<Socket> pnewSock( new Socket(s, from) ); + std::shared_ptr<Socket> pnewSock( new Socket(s, from) ); #ifdef MONGO_CONFIG_SSL if (_ssl) { pnewSock->secureAccepted(_ssl); @@ -556,7 +555,7 @@ namespace mongo { log() << "connection accepted from " << from.toString() << " #" << myConnectionNumber << " (" << conns << word << " now open)" << endl; } - boost::shared_ptr<Socket> pnewSock( new Socket(s, from) ); + std::shared_ptr<Socket> pnewSock( new Socket(s, from) ); #ifdef MONGO_CONFIG_SSL if (_ssl) { pnewSock->secureAccepted(_ssl); @@ -578,7 +577,7 @@ namespace mongo { } } - void Listener::accepted(boost::shared_ptr<Socket> psocket, long long connectionId ) { + void Listener::accepted(std::shared_ptr<Socket> psocket, long long connectionId ) { MessagingPort* port = new MessagingPort(psocket); port->setConnectionId( connectionId ); acceptedMP( port ); |