-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathws.h
More file actions
37 lines (32 loc) · 704 Bytes
/
ws.h
File metadata and controls
37 lines (32 loc) · 704 Bytes
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
#ifndef _WS_H_
#define _WS_H_
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<ctype.h>
#include<setjmp.h>
#include<signal.h>
#include<sys/time.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<sys/mman.h>
#include<errno.h>
#include<math.h>
#include<pthread.h>
#include<semaphore.h>
#include<sys/socket.h>
#include<netdb.h>
#include<netinet/in.h>
#include<arpa/inet.h>
/* the number of work pthreads */
#define NTHREADS 100
#define SBUFSIZE 1024
#define MAXLINE 8192
#define RIO_BUFSIZE 8192
#define LISTENQ 1024
#define MAXBUF 8192
typedef struct sockaddr SA;
#endif