17 lines
256 B
C
17 lines
256 B
C
|
#ifndef NET_H
|
||
|
#define NET_H
|
||
|
|
||
|
#include <arpa/inet.h>
|
||
|
#include <unistd.h>
|
||
|
#include <errno.h>
|
||
|
#include <string.h>
|
||
|
#include <ifaddrs.h>
|
||
|
|
||
|
int net_init(unsigned int port);
|
||
|
int net_broadcast();
|
||
|
int net_listen_clients();
|
||
|
int net_send();
|
||
|
int net_receive();
|
||
|
|
||
|
#endif
|