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: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $,
- Author:
- Trustin Lee (trustin@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 SocketException
- Throws:
SocketException
setReuseAddress
public void setReuseAddress(boolean on)
throws SocketException
- Throws:
SocketException
getTrafficClass
public int getTrafficClass()
throws SocketException
- Throws:
SocketException
setTrafficClass
public void setTrafficClass(int tc)
throws SocketException
- Throws:
SocketException
Copyright © 2004-2005 . All Rights Reserved.