Package edu.wpi.first.networktables
Class RpcAnswer
java.lang.Object
edu.wpi.first.networktables.RpcAnswer
public final class RpcAnswer extends Object
NetworkTables Remote Procedure Call (Server Side).
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RpcAnswer(NetworkTableInstance inst, int entry, int call, String name, byte[] params, ConnectionInfo conn)Constructor. -
Method Summary
Modifier and Type Method Description booleanisValid()Determines if the native handle is valid.booleanpostResponse(byte[] result)Post RPC response (return value) for a polled RPC.
-
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- Instanceentry- Entry handlecall- Call handlename- Entry nameparams- Call raw parametersconn- Connection info
-
-
Method Details
-
isValid
Determines if the native handle is valid.- Returns:
- True if the native handle is valid, false otherwise.
-
postResponse
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
-