-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinet.h
executable file
·37 lines (33 loc) · 940 Bytes
/
inet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* ------------------ inet.h -------------------------
* Definitions for TCP and UDP client / server programs
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
//#define SERV_HOST_ADDR "137.238.7.32"
#define SERV_HOST_ADDR "127.0.0.1"
#define CITY_1 "137.238.7.32"
#define CITY_2 "137.238.7.33"
#define CITY_3 "137.238.7.34"
#define CITY_4 "137.238.7.35"
#define CITY_5 "137.238.7.36"
#define CITY_6 "137.238.7.37"
#define CITY_7 "137.238.7.38"
#define CITY_8 "137.238.7.39"
#define CITY_9 "137.238.7.35"
#define CITY_10 "137.238.7.40"
#define CITY_11 "137.238.7.41"
#define CITY_12 "137.238.7.42"
#define CITY_13 "137.238.7.43"
#define CITY_14 "137.238.7.44"
#define CITY_15 "137.238.7.45"
#define CITY_16 "137.238.7.46"
#define MAXLINE 256