Change folderstructure

This commit is contained in:
PolynomialDivision 2017-07-12 18:04:32 +02:00
parent 1cefa5b4b8
commit e1f63dc3c1
18 changed files with 133 additions and 902 deletions

View file

@ -1,12 +1,6 @@
#ifndef __DAWN_BROADCASTSOCKET_H
#define __DAWN_BROADCASTSOCKET_H
#include "ubus.h"
int init_socket_runopts(char *broadcast_ip, char *broadcast_port);
int init_socket_conffile();
int init_socket(const char *_broadcastIP, unsigned short _broadcastPort);
int send_string(char *msg);
void close_socket();
int setup_broadcast_socket(const char *_broadcast_ip, unsigned short _broadcast_port, struct sockaddr_in *addr);
#endif

View file

@ -0,0 +1,6 @@
#ifndef __DAWN_MULTICASTSTSOCKET_H
#define __DAWN_MULTICASTSSOCKET_H
int setup_multicast_socket();
#endif

View file

@ -0,0 +1,12 @@
#ifndef __DAWN_NETWORKSOCKET_H
#define __DAWN_NETWORKSOCKET_H
int init_socket_runopts(char *_ip, char *_port, int broadcast_socket);
int send_string(char *msg);
void close_socket();
#endif