org.littleshoot.util.mina
Interface MinaServer

All Known Implementing Classes:
MinaTcpServer

public interface MinaServer

Generic interface for MINA servers.


Method Summary
 void addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
          Adds the specified IoServiceListener to the server.
 void start(int localPort)
          Starts the MINA server.
 void stop()
          Stops the MINA server.
 

Method Detail

start

void start(int localPort)
           throws IOException
Starts the MINA server.

Parameters:
localPort - The port to listen on.
Throws:
IOException - If we cannot bind to the port.

stop

void stop()
Stops the MINA server.


addIoServiceListener

void addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
Adds the specified IoServiceListener to the server.

Parameters:
serviceListener - The listener to add.


Copyright © 2013 LittleShoot. All Rights Reserved.