Basic support for datagram messaging. Hope I haven't fucked
anything up! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5090 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -174,7 +174,7 @@ public class PresentsServer
|
||||
invoker.start();
|
||||
|
||||
// create our connection manager
|
||||
conmgr = new ConnectionManager(getListenPorts());
|
||||
conmgr = new ConnectionManager(getListenPorts(), getDatagramPorts());
|
||||
conmgr.setAuthenticator(createAuthenticator());
|
||||
|
||||
// create our client manager
|
||||
@@ -236,6 +236,14 @@ public class PresentsServer
|
||||
return Client.DEFAULT_SERVER_PORTS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ports on which the connection manager will listen for datagrams.
|
||||
*/
|
||||
protected int[] getDatagramPorts ()
|
||||
{
|
||||
return Client.DEFAULT_DATAGRAM_PORTS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts up all of the server services and enters the main server event loop.
|
||||
*/
|
||||
@@ -387,7 +395,7 @@ public class PresentsServer
|
||||
protected void invokerDidShutdown ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/** Our interval that generates "state of server" reports. */
|
||||
protected Interval _reportInterval;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user