add comments

This commit is contained in:
PolynomialDivision 2018-01-23 01:57:23 +01:00
parent f9d7ac0adf
commit 10f59a10cd
4 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#ifndef __DAWN_BROADCASTSOCKET_H #ifndef __DAWN_BROADCASTSOCKET_H
#define __DAWN_BROADCASTSOCKET_H #define __DAWN_BROADCASTSOCKET_H
// TODO: Consider to remove this...
int setup_broadcast_socket(const char *_broadcast_ip, unsigned short _broadcast_port, struct sockaddr_in *addr); int setup_broadcast_socket(const char *_broadcast_ip, unsigned short _broadcast_port, struct sockaddr_in *addr);
#endif #endif

View file

@ -1,6 +1,8 @@
#ifndef __DAWN_MULTICASTSTSOCKET_H #ifndef __DAWN_MULTICASTSTSOCKET_H
#define __DAWN_MULTICASTSSOCKET_H #define __DAWN_MULTICASTSSOCKET_H
// TODO: Consider to remove this...
int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_port, struct sockaddr_in *addr); int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_port, struct sockaddr_in *addr);
int remove_multicast_socket(int socket); int remove_multicast_socket(int socket);

View file

@ -8,6 +8,9 @@
#include "networksocket.h" #include "networksocket.h"
#include "broadcastsocket.h" #include "broadcastsocket.h"
// TODO: Consider to remove this...
int setup_broadcast_socket(const char *_broadcast_ip, unsigned short _broadcast_port, struct sockaddr_in *addr) { int setup_broadcast_socket(const char *_broadcast_ip, unsigned short _broadcast_port, struct sockaddr_in *addr) {
int sock; int sock;
int broadcast_permission; int broadcast_permission;

View file

@ -11,6 +11,9 @@
#include "multicastsocket.h" #include "multicastsocket.h"
// TODO: Consider to remove this...
static struct ip_mreq command; static struct ip_mreq command;
int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_port, struct sockaddr_in *addr) { int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_port, struct sockaddr_in *addr) {