Package edu.wpi.first.networktables
Class RpcAnswer
- java.lang.Object
-
- edu.wpi.first.networktables.RpcAnswer
-
-
Constructor Summary
Constructors Constructor Description RpcAnswer(NetworkTableInstance inst, int entry, int call, String name, byte[] params, ConnectionInfo conn)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid()
Determines if the native handle is valid.boolean
postResponse(byte[] result)
Post RPC response (return value) for a polled 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
- Instanceentry
- Entry handlecall
- Call handlename
- Entry nameparams
- Call raw parametersconn
- 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
-
-