trick/include/trick/variable_server_proto.h

31 lines
821 B
C
Raw Normal View History

2015-02-26 15:02:31 +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
void var_server_list_connections(void);
const char * var_server_get_hostname(void) ;
2015-02-26 15:02:31 +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) ;
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) ;
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