org.littleshoot.mina.common.support
Class BaseIoAcceptor
java.lang.Object
org.littleshoot.mina.common.support.BaseIoService
org.littleshoot.mina.common.support.BaseIoAcceptor
- All Implemented Interfaces:
- IoAcceptor, IoService
- Direct Known Subclasses:
- DatagramAcceptorDelegate, SocketAcceptor, VmPipeAcceptor
public abstract class BaseIoAcceptor
- extends BaseIoService
- implements IoAcceptor
A base implementation of IoAcceptor.
- Version:
- $Rev: 555855 $, $Date: 2007-07-13 12:19:00 +0900 (Fri, 13 Jul 2007) $
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseIoAcceptor
protected BaseIoAcceptor()
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
newSession
public IoSession newSession(SocketAddress remoteAddress,
SocketAddress localAddress)
- Description copied from interface:
IoAcceptor
- (Optional) Returns an
IoSession that is bound to the specified
localAddress and remoteAddress which reuses
the localAddress that is already bound by IoAcceptor
via IoAcceptor.bind(SocketAddress, IoHandler).
This operation is optional. Please throw UnsupportedOperationException
if the transport type doesn't support this operation. This operation is
usually implemented for connectionless transport types.
- Specified by:
newSession in interface IoAcceptor
Copyright © 2011 LittleShoot. All Rights Reserved.