net.sf.jbaobab.io
Interface ChannelHandler<C extends SelectableChannel>
- All Known Implementing Classes:
- SocketHandler
public interface ChannelHandler<C extends SelectableChannel>
An interface for ChannelManager that provides event notifiers.
- Author:
- Oakyoon Cha
- See Also:
ChannelManager
prepare
void prepare(C channel,
ChannelManager<C> receiver,
ChannelManager<C> sender)
receive
int receive()
throws IOException
- Throws:
IOException
send
int send()
throws IOException
- Throws:
IOException
connected
void connected()
disconnected
void disconnected()