From 3d679584f1d29c9c1572c8101c4129d4a2df33e2 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Mon, 8 Jan 2018 13:29:21 +0100 Subject: [PATCH] update some comments --- src/include/networksocket.h | 2 ++ src/include/runopts.h | 2 ++ src/network/broadcastsocket.c | 1 + 3 files changed, 5 insertions(+) diff --git a/src/include/networksocket.h b/src/include/networksocket.h index 4ab5a23..7150231 100644 --- a/src/include/networksocket.h +++ b/src/include/networksocket.h @@ -3,6 +3,8 @@ #include +// TODO: Add some comments + pthread_mutex_t send_mutex; int init_socket_runopts(const char *_ip, int _port, int _multicast_socket); diff --git a/src/include/runopts.h b/src/include/runopts.h index 421b272..bef010d 100644 --- a/src/include/runopts.h +++ b/src/include/runopts.h @@ -1,4 +1,6 @@ #ifndef __DAWN_RUNOPTS_H_ #define __DAWN_RUNOPTS_H_ +TODO: Delete + #endif diff --git a/src/network/broadcastsocket.c b/src/network/broadcastsocket.c index 7d6fc94..754bc35 100644 --- a/src/network/broadcastsocket.c +++ b/src/network/broadcastsocket.c @@ -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");