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