Passes the ConnectionInfo of the Rpc client on server callback (#112)

This commit is contained in:
Thad House
2016-09-16 20:20:55 -07:00
committed by Peter Johnson
parent c5c069743b
commit 7e9754acff
8 changed files with 40 additions and 12 deletions

View File

@@ -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);