net.sf.beep4j
Interface Listener

All Superinterfaces:
Peer
All Known Implementing Classes:
MinaListener

public interface Listener
extends Peer

An interface whose implementations allow to listen for BEEP sessions.

Author:
Simon Raess

Method Summary
 void bind(java.net.SocketAddress address, SessionHandlerFactory factory)
          Binds the given SocketAddress.
 
Methods inherited from interface net.sf.beep4j.Peer
setChannelFilterChainBuilder
 

Method Detail

bind

void bind(java.net.SocketAddress address,
          SessionHandlerFactory factory)
          throws java.io.IOException
Binds the given SocketAddress. Whenever a new SessionHandler is created with the SessionHandlerFactory whenever a new session is created.

Parameters:
address - the address
factory - the factory used to create SessionHandlers
Throws:
java.io.IOException - if binding the address fails


Copyright © 2007 null. All Rights Reserved.