org.lastbamboo.common.tcp.frame
Class TcpFrameServerIoHandler
java.lang.Object
org.lastbamboo.common.tcp.frame.TcpFrameServerIoHandler
- All Implemented Interfaces:
- org.littleshoot.mina.common.IoHandler
public class TcpFrameServerIoHandler
- extends Object
- implements org.littleshoot.mina.common.IoHandler
IoHandler that reads framed TCP messages and makes the bytes from
those messages available to a server.
TcpFrameServerIoHandler
public TcpFrameServerIoHandler(InetSocketAddress serverAddress)
- Creates a new
TcpFrameServerIoHandler.
- Parameters:
serverAddress - The address of the server to relay data to.
messageReceived
public void messageReceived(org.littleshoot.mina.common.IoSession session,
Object message)
- Specified by:
messageReceived in interface org.littleshoot.mina.common.IoHandler
exceptionCaught
public void exceptionCaught(org.littleshoot.mina.common.IoSession session,
Throwable cause)
- Specified by:
exceptionCaught in interface org.littleshoot.mina.common.IoHandler
messageSent
public void messageSent(org.littleshoot.mina.common.IoSession session,
Object message)
- Specified by:
messageSent in interface org.littleshoot.mina.common.IoHandler
sessionClosed
public void sessionClosed(org.littleshoot.mina.common.IoSession session)
throws Exception
- Specified by:
sessionClosed in interface org.littleshoot.mina.common.IoHandler
- Throws:
Exception
sessionCreated
public void sessionCreated(org.littleshoot.mina.common.IoSession session)
throws Exception
- Specified by:
sessionCreated in interface org.littleshoot.mina.common.IoHandler
- Throws:
Exception
sessionIdle
public void sessionIdle(org.littleshoot.mina.common.IoSession session,
org.littleshoot.mina.common.IdleStatus status)
throws Exception
- Specified by:
sessionIdle in interface org.littleshoot.mina.common.IoHandler
- Throws:
Exception
sessionOpened
public void sessionOpened(org.littleshoot.mina.common.IoSession ioSession)
throws Exception
- Specified by:
sessionOpened in interface org.littleshoot.mina.common.IoHandler
- Throws:
Exception
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 LittleShoot. All Rights Reserved.