org.apache.mina.io.datagram
Class DatagramSessionConfig

java.lang.Object
  extended by org.apache.mina.common.BaseSessionConfig
      extended by 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)

Method Summary
 boolean getReuseAddress()
           
 int getTrafficClass()
           
 void setReuseAddress(boolean on)
           
 void setTrafficClass(int tc)
           
 
Methods inherited from class org.apache.mina.common.BaseSessionConfig
getIdleTime, getIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, setIdleTime, setWriteTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.