WPILibC++  2020.3.2-60-g3011ebe
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.
 
NT_RpcCall call
 Call handle.
 
std::string name
 Entry name.
 
std::string params
 Call raw parameters.
 
ConnectionInfo conn
 Connection that called the RPC.
 

Friends

void swap (RpcAnswer &first, RpcAnswer &second)
 

Detailed Description

NetworkTables Remote Procedure Call (Server Side)

Member Function Documentation

◆ operator bool()

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

Determines if the native handle is valid.

Returns
True if the native handle is valid, false otherwise.

◆ PostResponse()

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

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