org.apache.mina.io.datagram
Class DatagramConnector

java.lang.Object
  extended by org.apache.mina.common.BaseSessionManager
      extended by org.apache.mina.io.datagram.DatagramConnector
All Implemented Interfaces:
SessionManager, IoConnector, IoSessionManager

public class DatagramConnector
extends BaseSessionManager
implements IoConnector

IoConnector for datagram transport (UDP/IP).

Version:
$Rev: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org)

Field Summary
 
Fields inherited from class org.apache.mina.common.BaseSessionManager
exceptionMonitor
 
Constructor Summary
DatagramConnector()
          Creates a new instance.
 
Method Summary
 IoSession connect(SocketAddress address, int timeout, IoHandler handler)
          Connects to the specified address with timeout.
 IoSession connect(SocketAddress address, IoHandler handler)
          Connects to the specified address.
 IoSession connect(SocketAddress address, SocketAddress localAddress, int timeout, IoHandler handler)
          Connects to the specified address with timeout.
 IoSession connect(SocketAddress address, SocketAddress localAddress, IoHandler handler)
          Connects to the specified address.
 IoFilterChain getFilterChain()
          Returns the filter chain that filters all events which is related with sessions this manager manages.
 
Methods inherited from class org.apache.mina.common.BaseSessionManager
getExceptionMonitor, setExceptionMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.mina.common.SessionManager
getExceptionMonitor, setExceptionMonitor
 

Constructor Detail

DatagramConnector

public DatagramConnector()
Creates a new instance.

Method Detail

connect

public IoSession connect(SocketAddress address,
                         IoHandler handler)
                  throws IOException
Description copied from interface: IoConnector
Connects to the specified address. If communication starts successfully, events are fired to the specified handler. This method blocks.

Specified by:
connect in interface IoConnector
Throws:
IOException - if failed to connect

connect

public IoSession connect(SocketAddress address,
                         int timeout,
                         IoHandler handler)
                  throws IOException
Description copied from interface: IoConnector
Connects to the specified address with timeout. If communication starts successfully, events are fired to the specified handler. This method blocks.

Specified by:
connect in interface IoConnector
Throws:
IOException - if failed to connect

connect

public IoSession connect(SocketAddress address,
                         SocketAddress localAddress,
                         int timeout,
                         IoHandler handler)
                  throws IOException
Description copied from interface: IoConnector
Connects to the specified address with timeout. If communication starts successfully, events are fired to the specified handler. This method blocks.

Specified by:
connect in interface IoConnector
localAddress - the local address the channel is bound to
Throws:
IOException - if failed to connect

connect

public IoSession connect(SocketAddress address,
                         SocketAddress localAddress,
                         IoHandler handler)
                  throws IOException
Description copied from interface: IoConnector
Connects to the specified address. If communication starts successfully, events are fired to the specified handler. This method blocks.

Specified by:
connect in interface IoConnector
localAddress - the local address the channel is bound to
Throws:
IOException - if failed to connect

getFilterChain

public IoFilterChain getFilterChain()
Description copied from interface: IoSessionManager
Returns the filter chain that filters all events which is related with sessions this manager manages.

Specified by:
getFilterChain in interface IoSessionManager


Copyright © 2004-2005 . All Rights Reserved.