All Packages  This Package  Class Hierarchy  Class Search  Index

Interface edu.utah.janos.nodeos.DeliverFunc

  Summary

public interface  DeliverFunc
{
          // Methods 1
     public abstract void receive(BufferHandle, int) throws IOException;
}

Java wrapper for a DeliverFunc. This "callback" is invoked when a packet is received. Objects that implement this interface are passed to InChannel create calls.

Author:
Janos Ministry of Development

See Also: InChannel


  Cross Reference

Returned By:
pj_BufferHandle.getDeliverFunc()

Implemented By:
CapsuleChannel, UnknownPacketHandler, StdinTest.StdinTest_Deliver, UdpTest.UdpTest_Deliver, InChannelTester.Receiver





  Methods

· receive

Summary  |  Top
   public abstract void receive(BufferHandle packet, 
                                int payloadOffset)  throws IOException

Invoked once for each packet that is received. The "payloadOffset" is defined as the first byte of the packet that wasn't used to match the demultiplexKey.

XXX why does this throw IOException?

Parameter Description
packet the packet that was recieved.
payloadOffset the integer returned from the DemultiplexKey.matches() function.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7