Class RpcAnswer


  • public final class RpcAnswer
    extends Object
    NetworkTables Remote Procedure Call (Server Side).
    • Field Detail

      • entry

        public final int entry
        Entry handle.
      • call

        public int call
        Call handle.
      • name

        public final String name
        Entry name.
      • params

        public final byte[] params
        Call raw parameters.
      • conn

        public final ConnectionInfo conn
        Connection that called the RPC.
    • Constructor Detail

      • RpcAnswer

        public RpcAnswer​(NetworkTableInstance inst,
                         int entry,
                         int call,
                         String name,
                         byte[] params,
                         ConnectionInfo conn)
        Constructor. This should generally only be used internally to NetworkTables.
        Parameters:
        inst - Instance
        entry - Entry handle
        call - Call handle
        name - Entry name
        params - Call raw parameters
        conn - Connection info
    • Method Detail

      • isValid

        public boolean isValid()
        Determines if the native handle is valid.
        Returns:
        True if the native handle is valid, false otherwise.
      • postResponse

        public boolean postResponse​(byte[] result)
        Post RPC response (return value) for a polled RPC.
        Parameters:
        result - result raw data that will be provided to remote caller
        Returns:
        true if the response was posted, otherwise false