Add capability to list current variable server connections in JSON re… (#732)

* Add capability to list current variable server connections in JSON ref #678

* Add client tag to the connection info.

* Name consistency tweak in generation of JSON variable-server connection list. ref #732

* Add client IP address and port. ref #732

* Output should be going to the stringstream, not std::cout. Ref #732
This commit is contained in:
jmpenn
2019-02-18 17:11:41 -06:00
committed by GitHub
parent a2cee328d2
commit b9278c4a72
8 changed files with 93 additions and 0 deletions

View File

@ -63,6 +63,16 @@ Trick::VariableReference::VariableReference(REF2 * in_ref ) {
}
std::ostream& Trick::operator<< (std::ostream& s, const Trick::VariableReference& vref) {
if (vref.ref->reference != NULL) {
s << " \"" << vref.ref->reference << "\"";
} else {
s<< " null";
}
return s;
}
Trick::VariableReference::~VariableReference() {
free(ref) ;
free(buffer_in) ;