org.apache.mina.io.datagram
Class DatagramAcceptor
java.lang.Object
org.apache.mina.common.BaseSessionManager
org.apache.mina.io.datagram.DatagramAcceptor
- All Implemented Interfaces:
- SessionManager, IoAcceptor, IoSessionManager
public class DatagramAcceptor
- extends BaseSessionManager
- implements IoAcceptor
IoAcceptor
for datagram transport (UDP/IP).
- Version:
- $Rev: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $
- Author:
- Trustin Lee (trustin@apache.org)
Method Summary |
void |
bind(SocketAddress address,
IoHandler handler)
Binds to the specified address and handles incoming
connections with the specified handler . |
IoFilterChain |
getFilterChain()
Returns the filter chain that filters all events which is related
with sessions this manager manages. |
void |
unbind(SocketAddress address)
Unbinds from the specified address . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatagramAcceptor
public DatagramAcceptor()
- Creates a new instance.
bind
public void bind(SocketAddress address,
IoHandler handler)
throws IOException
- Description copied from interface:
IoAcceptor
- Binds to the specified
address
and handles incoming
connections with the specified handler
.
- Specified by:
bind
in interface IoAcceptor
- Throws:
IOException
- if failed to bind
unbind
public void unbind(SocketAddress address)
- Description copied from interface:
IoAcceptor
- Unbinds from the specified
address
.
- Specified by:
unbind
in interface IoAcceptor
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.