2017-04-11 17:12:34 +00:00
|
|
|
/**************************
|
|
|
|
* Header Dependency *
|
|
|
|
***************************
|
|
|
|
* Designed & Developed by *
|
|
|
|
* Adrien Marquès *
|
|
|
|
* <xdrm-brackets> *
|
|
|
|
***************************
|
|
|
|
* doowap31@gmail.com *
|
|
|
|
**************************/
|
2017-04-03 16:04:57 +00:00
|
|
|
#ifndef _LIB_HEADER_H_
|
|
|
|
#define _LIB_HEADER_H_
|
|
|
|
|
|
|
|
|
|
|
|
/* global */
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
/* sys */
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
|
|
|
|
|
|
|
|
/* socket */
|
|
|
|
#include <unistd.h> // close
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netdb.h> // getaddrinfo, getnameinfo
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
|
|
|
|
/* vars */
|
2017-04-11 17:12:34 +00:00
|
|
|
#define MCST_HOST "224.0.0.1" // adresse groupe multicast UDP
|
|
|
|
#define MCST_PORT 4444 // port multicast UDP
|
2017-04-03 16:04:57 +00:00
|
|
|
|
2017-04-12 07:57:59 +00:00
|
|
|
#define SOCK_TIMEOUT 3
|
|
|
|
|
2017-04-03 16:04:57 +00:00
|
|
|
#define MAX_BUF_LEN 512
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|