com.threerings.presents.server.net
Class DatagramChannelReader
java.lang.Object
com.threerings.presents.server.net.DatagramChannelReader
- All Implemented Interfaces:
- Lifecycle.BaseComponent, Lifecycle.ShutdownComponent
public class DatagramChannelReader
- extends Object
- implements Lifecycle.ShutdownComponent
Binds datagram connections on a given hostname for a set of ports, and passes datagrams read
off those ports into a connection manager.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_datagramPorts
protected final int[] _datagramPorts
_datagramHostname
protected final String _datagramHostname
_datagramChannels
protected final List<DatagramChannel> _datagramChannels
_conMan
protected final PresentsConnectionManager _conMan
DatagramChannelReader
public DatagramChannelReader(String datagramHostname,
int[] datagramPorts,
PresentsConnectionManager conMgr)
bind
public void bind()
shutdown
public void shutdown()
- Specified by:
shutdown in interface Lifecycle.ShutdownComponent
acceptDatagrams
protected void acceptDatagrams(int port)
throws IOException
- Throws:
IOException