update some comments

This commit is contained in:
PolynomialDivision 2018-01-08 13:29:21 +01:00
parent 21f5c45b3e
commit 3d679584f1
3 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,8 @@
#include <pthread.h>
// TODO: Add some comments
pthread_mutex_t send_mutex;
int init_socket_runopts(const char *_ip, int _port, int _multicast_socket);

View file

@ -1,4 +1,6 @@
#ifndef __DAWN_RUNOPTS_H_
#define __DAWN_RUNOPTS_H_
TODO: Delete
#endif

View file

@ -32,6 +32,7 @@ int setup_broadcast_socket(const char *_broadcast_ip, unsigned short _broadcast_
addr->sin_addr.s_addr = inet_addr(_broadcast_ip);
addr->sin_port = htons(_broadcast_port);
/* Bind socket */
while (bind(sock, (struct sockaddr *) addr, sizeof(*addr)) <
0) {
fprintf(stderr, "Binding socket failed!\n");