trick/include/trick/variable_server_proto.h
jmpenn b9278c4a72
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
2019-02-18 17:11:41 -06:00

31 lines
821 B
C

#ifndef VARIABLE_SERVER_PROTO_H
#define VARIABLE_SERVER_PROTO_H
#ifdef __cplusplus
extern "C" {
#endif
void var_server_list_connections(void);
const char * var_server_get_hostname(void) ;
unsigned short var_server_get_port(void) ;
void var_server_set_port(unsigned short port) ;
void var_server_set_source_address(const char * address) ;
const char * var_server_get_user_tag(void) ;
void var_server_set_user_tag(const char * tag) ;
int var_server_get_enabled(void) ;
void var_server_set_enabled(int on_off) ;
int var_server_create_tcp_socket(const char * address, unsigned short port) ;
int var_server_create_udp_socket(const char * address, unsigned short port) ;
int var_server_create_multicast_socket(const char * mcast_address, const char * address, unsigned short port) ;
#ifdef __cplusplus
}
#endif
#endif