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.