mirror of
https://github.com/nasa/trick.git
synced 2025-06-21 00:23:14 +00:00
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:
@ -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) ;
|
||||
|
Reference in New Issue
Block a user