All Packages This Package Class Hierarchy Class Search Index
Class edu.utah.janos.antsr.core.CapsuleChannel
java.lang.Object
|
+----edu.utah.janos.antsr.core.CapsuleChannel
final class CapsuleChannel
extends java.lang.Object
implements edu.utah.janos.nodeos.DeliverFunc
{
// Fields 3
Class cl;
private ANTSRDemultiplexKey classifier;
InChannel inChannel;
// Constructors 4
CapsuleChannel(CapsuleClass);
CapsuleChannel(CapsuleClass, ThreadPool);
CapsuleChannel(Class, ANTSRDemultiplexKey);
CapsuleChannel(Class, ANTSRDemultiplexKey, ThreadPool);
// Methods 2
public void receive(BufferHandle, int) throws IOException;
public String toString();
}
The handler for incoming ANTSR packets. They get decoded into
Capsules and evaluted here.
Class cl
InChannel inChannel
private ANTSRDemultiplexKey classifier
CapsuleChannel(CapsuleClass cc)
CapsuleChannel(CapsuleClass cc,
ThreadPool threadPool)
Construct a receive channel for cc Capsules. Implicitly
constructs an ANTSRDemultiplexKey to match the right packets.
CapsuleChannel(Class cl,
ANTSRDemultiplexKey classifier)
CapsuleChannel(Class cl,
ANTSRDemultiplexKey classifier,
ThreadPool threadPool)
public void receive(BufferHandle packet,
int payloadStart) throws IOException
Handler for packets delivered to this Channel.
Receives a BufferHandle and decodes the packet
into a Capsule.
Assumes packet[0] is the first byte of the ANEP
header...
XXX this is atrocious code. Rewrite it now.
- Implements:
- receive in interface DeliverFunc
public String toString()
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7