JNodeOS v1.1.5 API

edu.utah.janos.apps.ping
Class PingFlow

java.lang.Object
  |
  +--edu.utah.janos.nodeos.FlowRun
        |
        +--edu.utah.janos.apps.ping.PingFlow

public class PingFlow
extends FlowRun
implements DeliverFunc

A flow implementation of `ping'.


Constructor Summary
PingFlow()
           
 
Method Summary
 void receive(BufferHandle bh, int payloadOffset)
          Invoked once for each packet that is received.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingFlow

public PingFlow()
Method Detail

receive

public void receive(BufferHandle bh,
                    int payloadOffset)
Description copied from interface: DeliverFunc
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?

Specified by:
receive in interface DeliverFunc
Tags copied from interface: DeliverFunc
Parameters:
packet - the packet that was recieved.
payloadOffset - the integer returned from the DemultiplexKey.matches() function.

JNodeOS v1.1.5 API

This documentation is Copyright (C) 1998-2001 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: http://www.cs.utah.edu/flux/janos/