diff options
author | alerner <alerner@installer-desktop.(none)> | 2010-05-28 16:24:52 -0400 |
---|---|---|
committer | alerner <alerner@installer-desktop.(none)> | 2010-05-28 16:27:06 -0400 |
commit | c347ef85f53e814cf90a3a24f6e615305702d0d0 (patch) | |
tree | 096fe91670f56fd244a6278d37194947f038efff /util/message_server_port.cpp | |
parent | c9f99b7ef1079e5f2225878f451c9dadcdb6c38f (diff) | |
download | mongo-c347ef85f53e814cf90a3a24f6e615305702d0d0.tar.gz |
mongos now accepts a --bind_ip argument [SERVER-1156]
Diffstat (limited to 'util/message_server_port.cpp')
-rw-r--r-- | util/message_server_port.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/util/message_server_port.cpp b/util/message_server_port.cpp index 08e5b8200e5..ed751433173 100644 --- a/util/message_server_port.cpp +++ b/util/message_server_port.cpp @@ -73,9 +73,8 @@ namespace mongo { class PortMessageServer : public MessageServer , public Listener { public: - PortMessageServer( int port , MessageHandler * handler ) : - MessageServer( port , handler ) , - Listener( "", port ){ + PortMessageServer( const MessageServer::Options& opts, MessageHandler * handler ) : + Listener( opts.ipList, opts.port ){ uassert( 10275 , "multiple PortMessageServer not supported" , ! pms::handler ); pms::handler = handler; @@ -117,8 +116,8 @@ namespace mongo { }; - MessageServer * createServer( int port , MessageHandler * handler ){ - return new PortMessageServer( port , handler ); + MessageServer * createServer( const MessageServer::Options& opts , MessageHandler * handler ){ + return new PortMessageServer( opts , handler ); } TicketHolder connTicketHolder(20000); |