next up previous contents
Next: Stream interfaces Up: Communication infra-structure: Channels Previous: The RPC class   Contents

The Child class

A new application spawned by the RPC class should be derived from the class Child, which has interface

  class Child {
    static Port initial ;
  }
Typical usage would be
  public class EgChild extends Child {
    public static void main(String args[]) {

      ... communicate with parent through `initial'.
    }
  }

The current implementation of the Child includes static initialization code which receives a channel-end from the RPC parent and binds it to initial. The negotiations involved are performed through the standard input and output streams of the child thread.



Bryan Carpenter 2002-07-12