mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
update some comments
This commit is contained in:
parent
21f5c45b3e
commit
3d679584f1
3 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
// TODO: Add some comments
|
||||||
|
|
||||||
pthread_mutex_t send_mutex;
|
pthread_mutex_t send_mutex;
|
||||||
|
|
||||||
int init_socket_runopts(const char *_ip, int _port, int _multicast_socket);
|
int init_socket_runopts(const char *_ip, int _port, int _multicast_socket);
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#ifndef __DAWN_RUNOPTS_H_
|
#ifndef __DAWN_RUNOPTS_H_
|
||||||
#define __DAWN_RUNOPTS_H_
|
#define __DAWN_RUNOPTS_H_
|
||||||
|
|
||||||
|
TODO: Delete
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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_addr.s_addr = inet_addr(_broadcast_ip);
|
||||||
addr->sin_port = htons(_broadcast_port);
|
addr->sin_port = htons(_broadcast_port);
|
||||||
|
|
||||||
|
/* Bind socket */
|
||||||
while (bind(sock, (struct sockaddr *) addr, sizeof(*addr)) <
|
while (bind(sock, (struct sockaddr *) addr, sizeof(*addr)) <
|
||||||
0) {
|
0) {
|
||||||
fprintf(stderr, "Binding socket failed!\n");
|
fprintf(stderr, "Binding socket failed!\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue