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

Method Summary
 Protocol<P> protocol()
           
 int receive(PacketHandler<P> handler)
           
 void schedulePacket(P packet)
           
 void scheduleShutdown()
           
 int send()
           
 void shutdown()
           
 String track()
           
 

Method Detail

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()