public final class RpcAnswer extends Object
Modifier and Type | Field and Description |
---|---|
int |
call
Call handle.
|
ConnectionInfo |
conn
Connection that called the RPC.
|
int |
entry
Entry handle.
|
String |
name
Entry name.
|
byte[] |
params
Call raw parameters.
|
Constructor and Description |
---|
RpcAnswer(NetworkTableInstance inst,
int entry,
int call,
String name,
byte[] params,
ConnectionInfo conn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValid()
Determines if the native handle is valid.
|
boolean |
postResponse(byte[] result)
Post RPC response (return value) for a polled RPC.
|
public final int entry
public int call
public final String name
public final byte[] params
public final ConnectionInfo conn
public RpcAnswer(NetworkTableInstance inst, int entry, int call, String name, byte[] params, ConnectionInfo conn)
inst
- Instanceentry
- Entry handlecall
- Call handlename
- Entry nameparams
- Call raw parametersconn
- Connection infopublic boolean isValid()
public boolean postResponse(byte[] result)
result
- result raw data that will be provided to remote caller