summaryrefslogtreecommitdiff
path: root/util/message_server_port.cpp
diff options
context:
space:
mode:
authoralerner <alerner@installer-desktop.(none)>2010-05-28 16:24:52 -0400
committeralerner <alerner@installer-desktop.(none)>2010-05-28 16:27:06 -0400
commitc347ef85f53e814cf90a3a24f6e615305702d0d0 (patch)
tree096fe91670f56fd244a6278d37194947f038efff /util/message_server_port.cpp
parentc9f99b7ef1079e5f2225878f451c9dadcdb6c38f (diff)
downloadmongo-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.cpp9
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);