JNodeOS v1.2.0 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.
protected  void run(Flow flow, java.lang.String[] args, edu.utah.janosvm.kit.comm.commspace.CommSpaceHandle commSpaceHandle)
          Invoked as the initial entrypoint in a new flow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingFlow

public PingFlow()
Method Detail

run

protected void run(Flow flow,
                   java.lang.String[] args,
                   edu.utah.janosvm.kit.comm.commspace.CommSpaceHandle commSpaceHandle)
Description copied from class: FlowRun
Invoked as the initial entrypoint in a new flow. The flow parameter is a parameter is the new flow object, the args array contains "command line" arguments to the new flow. The CommSpaceHandle provides a communication link with the parent flow (if the parent flow provided one).
Overrides:
run in class FlowRun
Tags copied from class: FlowRun
Parameters:
flow - the new flow and the current flow
args - whatever "command line" arguments the creator passed.
csh - handle on a parent's CommSpace

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.2.0 API

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