rewrite multicast setup

This commit is contained in:
PolynomialDivision 2017-12-07 19:34:31 +01:00
parent b39d310c00
commit 3dd4fc30ec
5 changed files with 30 additions and 8 deletions

View file

@ -3,4 +3,6 @@
int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_port, struct sockaddr_in *addr);
int remove_multicast_socket(int socket);
#endif

View file

@ -5,7 +5,7 @@
pthread_mutex_t send_mutex;
int init_socket_runopts(char *_ip, char *_port, int broadcast_socket);
int init_socket_runopts(char *_ip, char *_port, int _multicast_socket);
int send_string(char *msg);