net.sf.jbaobab.io
Interface ChannelCore<P>
- All Known Subinterfaces:
- SocketCore<P>
- All Known Implementing Classes:
- ChannelCoreBank, ChannelCoreSet, ExpirableSocketCore, SimpleSocketCore, ThreadedSocketCore
public interface ChannelCore<P>
An interface that encapsulate SelectableChannel
instances, providing low level IO operations, and packet manipulations.
- Author:
- Oakyoon Cha
protocol
Protocol<P> protocol()
receive
int receive(PacketHandler<P> handler)
throws IOException
- Throws:
IOException
send
int send()
throws IOException
- Throws:
IOException
shutdown
void shutdown()
schedulePacket
void schedulePacket(P packet)
scheduleShutdown
void scheduleShutdown()
track
String track()