mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Passes the ConnectionInfo of the Rpc client on server callback (#112)
This commit is contained in:
committed by
Peter Johnson
parent
c5c069743b
commit
7e9754acff
@@ -4,7 +4,8 @@
|
||||
|
||||
#include "ntcore.h"
|
||||
|
||||
std::string callback1(nt::StringRef name, nt::StringRef params_str) {
|
||||
std::string callback1(nt::StringRef name, nt::StringRef params_str,
|
||||
const nt::ConnectionInfo& conn_info) {
|
||||
auto params = nt::UnpackRpcValues(params_str, NT_DOUBLE);
|
||||
if (params.empty()) {
|
||||
std::fputs("empty params?\n", stderr);
|
||||
|
||||
Reference in New Issue
Block a user