Example #1
0
 public virtual void checkEcho(OncRpcClient client, string[] messages
                               )
 {
     for (int idx = 0; idx < messages.Length; ++idx)
     {
         XdrString @params = new XdrString(messages[idx]
                                           );
         XdrString result = new XdrString();
         System.Console.Out.Write("checking echo: ");
         try
         {
             client.call(1, @params, result);
         }
         catch (OncRpcException e)
         {
             System.Console.Out.WriteLine("method call failed unexpectedly:");
             System.Console.Out.WriteLine(e.StackTrace);
             System.Environment.Exit(1);
         }
         if ([email protected]().Equals(result.stringValue()))
         {
             Console.Out.WriteLine("answer does not match call:");
             Console.Out.WriteLine("  expected: \"" + @params.stringValue() + "\"");
             Console.Out.WriteLine("  but got:  \"" + result.stringValue() + "\"");
             System.Environment.Exit(1);
         }
         System.Console.Out.WriteLine(result.stringValue());
     }
 }
 /**
  * Constructs a <code>NFSv4_callbackClient</code> client stub proxy object
  * from which the NFS4_CALLBACK remote program can be accessed.
  * @param client ONC/RPC client connection object implementing a particular
  *   protocol.
  * @throws OncRpcException if an ONC/RPC error occurs.
  * @throws IOException if an I/O error occurs.
  */
 public NFSv4_callbackClient(OncRpcClient client) : base(client)
 {
 }
 /**
  * Constructs a <code>NFSv2MountProtocolClient</code> client stub proxy object
  * from which the MOUNTPROG remote program can be accessed.
  * @param client ONC/RPC client connection object implementing a particular
  *   protocol.
  * @throws OncRpcException if an ONC/RPC error occurs.
  * @throws IOException if an I/O error occurs.
  */
 public NFSv2MountProtocolClient(OncRpcClient client)
     : base(client)
 {
 }
 /**
  * Constructs a <code>NFSv3ProtocolClient</code> client stub proxy object
  * from which the NFS_PROGRAM remote program can be accessed.
  * @param client ONC/RPC client connection object implementing a particular
  *   protocol.
  * @throws OncRpcException if an ONC/RPC error occurs.
  * @throws IOException if an I/O error occurs.
  */
 public NFSv3ProtocolClient(OncRpcClient client)
     : base(client)
 {
 }
Example #5
0
 /**
  * Constructs a <code>missileClient</code> client stub proxy object
  * from which the MISSILE remote program can be accessed.
  * @param client ONC/RPC client connection object implementing a particular
  *   protocol.
  * @throws OncRpcException if an ONC/RPC error occurs.
  * @throws IOException if an I/O error occurs.
  */
 public missileClient(OncRpcClient client) : base(client)
 {
 }
Example #6
0
 /**
  * Constructs a <code>gpio_server_oncrpcClient</code> client stub proxy object
  * from which the GPIO_SERVER_ONCRPC remote program can be accessed.
  * @param client ONC/RPC client connection object implementing a particular
  *   protocol.
  * @throws OncRpcException if an ONC/RPC error occurs.
  * @throws IOException if an I/O error occurs.
  */
 public gpio_server_oncrpcClient(OncRpcClient client) : base(client)
 {
 }