Class RpcAnswer

java.lang.Object
edu.wpi.first.networktables.RpcAnswer

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

  • Constructor Details

    • 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 Details

    • 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