org.apache.mina.io.datagram
Class DatagramSessionConfig
java.lang.Object
org.apache.mina.common.BaseSessionConfig
org.apache.mina.io.datagram.DatagramSessionConfig
- All Implemented Interfaces:
- SessionConfig
- public class DatagramSessionConfig
- extends BaseSessionConfig
A SessionConfig
for datagram transport (UDP/IP).
You can downcast SessionConfig
instance returned by
Session.getConfig()
or Session.getConfig()
if you've created datagram session using DatagramAcceptor
or
DatagramConnector
.
- Version:
- $Rev: 326586 $, $Date: 2005-10-19 17:50:29 +0200 (Wed, 19 Oct 2005) $,
- Author:
- The Apache Directory Project (dev@directory.apache.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getReuseAddress
public boolean getReuseAddress()
throws java.net.SocketException
- Throws:
java.net.SocketException
setReuseAddress
public void setReuseAddress(boolean on)
throws java.net.SocketException
- Throws:
java.net.SocketException
getTrafficClass
public int getTrafficClass()
throws java.net.SocketException
- Throws:
java.net.SocketException
setTrafficClass
public void setTrafficClass(int tc)
throws java.net.SocketException
- Throws:
java.net.SocketException