WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
nt::RpcAnswer Class Reference

NetworkTables Remote Procedure Call (Server Side) More...

#include <ntcore_cpp.h>

Public Member Functions

 RpcAnswer (NT_Entry entry_, NT_RpcCall call_, StringRef name_, StringRef params_, const ConnectionInfo &conn_)
 
 operator bool () const
 Determines if the native handle is valid. More...
 
bool PostResponse (StringRef result) const
 Post RPC response (return value) for a polled RPC. More...
 

Public Attributes

NT_Entry entry
 Entry handle. More...
 
NT_RpcCall call
 Call handle. More...
 
std::string name
 Entry name. More...
 
std::string params
 Call raw parameters. More...
 
ConnectionInfo conn
 Connection that called the RPC. More...
 

Friends

void swap (RpcAnswer &first, RpcAnswer &second)
 

Detailed Description

NetworkTables Remote Procedure Call (Server Side)

Member Function Documentation

nt::RpcAnswer::operator bool ( ) const
inlineexplicit

Determines if the native handle is valid.

Returns
True if the native handle is valid, false otherwise.
bool nt::RpcAnswer::PostResponse ( StringRef  result) const
inline

Post RPC response (return value) for a polled RPC.

Parameters
resultresult raw data that will be provided to remote caller
Returns
True if posting the response is valid, otherwise false

Member Data Documentation

NT_RpcCall nt::RpcAnswer::call
mutable

Call handle.

ConnectionInfo nt::RpcAnswer::conn

Connection that called the RPC.

NT_Entry nt::RpcAnswer::entry

Entry handle.

std::string nt::RpcAnswer::name

Entry name.

std::string nt::RpcAnswer::params

Call raw parameters.


The documentation for this class was generated from the following file: