Promote the datagramHostname to the bindHostname and use it for our TCP
connections as well. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5942 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -157,7 +157,7 @@ public class PresentsServer
|
||||
_clmgr.setInjector(injector);
|
||||
|
||||
// configure our connection manager
|
||||
_conmgr.init(getListenPorts(), getDatagramPorts(), getDatagramHostname());
|
||||
_conmgr.init(getBindHostname(), getListenPorts(), getDatagramPorts());
|
||||
|
||||
// initialize the time base services
|
||||
TimeBaseProvider.init(_invmgr, _omgr);
|
||||
@@ -224,6 +224,15 @@ public class PresentsServer
|
||||
return PresentsObjectAccess.DEFAULT;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the hostname on which the connection manager will listen for TCP and datagram
|
||||
* traffic, or <code>null</code> to bind to the wildcard address.
|
||||
*/
|
||||
protected String getBindHostname ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the port on which the connection manager will listen for client connections.
|
||||
*/
|
||||
@@ -240,15 +249,6 @@ public class PresentsServer
|
||||
return Client.DEFAULT_DATAGRAM_PORTS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the hostname for which the connection manager will listen for datagrams, or
|
||||
* <code>null</code> to bind to the wildcard address.
|
||||
*/
|
||||
protected String getDatagramHostname ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called once the invoker and distributed object manager have both completed processing all
|
||||
* remaining events and are fully shutdown. <em>Note:</em> this is called as the last act of
|
||||
|
||||
Reference in New Issue
Block a user