Added an option to bind the datagram socket to a specific

hostname, in hopes of fixing the issue with receiving datagrams 
from the staging server.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5793 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2009-05-21 18:04:09 +00:00
parent 6dd16483be
commit d45b0bdb00
2 changed files with 25 additions and 3 deletions
@@ -154,11 +154,11 @@ public class PresentsServer
_clmgr.setInjector(injector);
// configure our connection manager
_conmgr.init(getListenPorts(), getDatagramPorts());
_conmgr.init(getListenPorts(), getDatagramPorts(), getDatagramHostname());
// initialize the time base services
TimeBaseProvider.init(_invmgr, _omgr);
// Make the client manager shut down before the invoker and dobj threads. This will help
// application code to avoid long chains of shutdown constraints (e.g. msoy bureau manager).
_shutmgr.addConstraint(
@@ -207,6 +207,15 @@ 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