31 lines
641 B
C
31 lines
641 B
C
|
#ifndef _LIB_HEADER_H_
|
||
|
#define _LIB_HEADER_H_
|
||
|
|
||
|
|
||
|
/* global */
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <stdint.h>
|
||
|
#include <time.h>
|
||
|
#include <math.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 */
|
||
|
#define SRV_HOST "localhost"
|
||
|
#define SRV_PORT 4444
|
||
|
|
||
|
#define MAX_BUF_LEN 512
|
||
|
|
||
|
|
||
|
#endif
|