Accessor for datagram transmission flag.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5795 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2009-05-21 23:36:18 +00:00
parent 31e9807c05
commit 13251b0d79
@@ -163,6 +163,15 @@ public class PresentsSession
return (conn == null) ? null : conn.getInetAddress();
}
/**
* Checks whether the client has requested that datagram transmission be enabled.
*/
public boolean getTransmitDatagrams ()
{
Connection conn = getConnection();
return conn != null && conn.getTransmitDatagrams();
}
/**
* Configures this session with a custom class loader that will be used when unserializing
* classes from the network.