-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathws.h
More file actions
52 lines (44 loc) · 1.03 KB
/
ws.h
File metadata and controls
52 lines (44 loc) · 1.03 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#ifndef AF4DB7EE_9364_46E6_850F_0F1B59E385AD
#define AF4DB7EE_9364_46E6_850F_0F1B59E385AD
#endif /* AF4DB7EE_9364_46E6_850F_0F1B59E385AD */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <semaphore.h>
#include <sys/sendfile.h>
#include <pthread.h>
#define WS_TEXT_FRAME 0x01
#define WS_PING_FRAME 0x09
#define WS_PONG_FRAME 0x0A
#define WS_CLOSING_FRAME 0x08
#define BUFSIZE 1024
#define FILESTR 32
#define ALLARRAY 64
#define SHA_DIGEST_LENGTH 20
#define SW_BUF 65552
#define SW_BUF_126 65552
#define SW_BUF_127 80000 //131104 //65552
/*
#define BUFSIZE 1024
#define FILESTR 32
#define ALLARRAY 64
#define SHA_DIGEST_LENGTH 20
#define SW_BUF 65552
*/
/*
char patch_to_dir[ALLARRAY] = {0,};
char fpfile[ALLARRAY] = {0,};
char buffer[BUFSIZE] = {0,};
int client_fd, count_warning_log =0;
*/
//struct stat stat_buf;