blob: 6af7e71a2401bc97a44b7390ffa7910e68be52c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/************************************************************************
* Definitions for TCP and UDP client/server programs.
*/
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <asm/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#define SERV_TCP_PORT 9018
//#define SERV_HOST_ADDR "10.0.0.200" /* host addr for server */
#define SERV_HOST_ADDR "127.0.0.1" /* Localhost */
|