2015-02-26 15:02:31 +00:00
|
|
|
|
2015-03-23 21:03:14 +00:00
|
|
|
#ifndef VARIABLE_SERVER_PROTO_H
|
|
|
|
#define VARIABLE_SERVER_PROTO_H
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-02-18 23:11:41 +00:00
|
|
|
void var_server_list_connections(void);
|
2018-09-19 16:25:04 +00:00
|
|
|
const char * var_server_get_hostname(void) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2018-09-19 16:25:04 +00:00
|
|
|
unsigned short var_server_get_port(void) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
void var_server_set_port(unsigned short port) ;
|
|
|
|
void var_server_set_source_address(const char * address) ;
|
|
|
|
|
2018-09-19 16:25:04 +00:00
|
|
|
const char * var_server_get_user_tag(void) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
void var_server_set_user_tag(const char * tag) ;
|
|
|
|
|
2018-09-19 16:25:04 +00:00
|
|
|
int var_server_get_enabled(void) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
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
|