edu.utah.janos.nodeos
Interface DeliverFunc
- All Known Implementing Classes:
- PingFlow, FloodSink
- public interface DeliverFunc
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
Method Summary |
void |
receive(BufferHandle packet,
int payloadOffset)
Invoked once for each packet that is received. |
receive
public void receive(BufferHandle packet,
int payloadOffset)
throws java.io.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?
- Parameters:
packet
- the packet that was recieved.payloadOffset
- the integer returned from the
DemultiplexKey.matches() function.
This documentation is Copyright (C) 1998-2002 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project web site: http://www.cs.utah.edu/flux/janos/
Generated on Mar 17, 2002