forked from KaidenTBIO/ABKCaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
etc.h
86 lines (76 loc) · 1.35 KB
/
etc.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef CASTER_ETC
#define CASTER_ETC
#if _MSC_VER >1300
# if !defined(_WINDOWS_)
# if !defined(NO_WIN32_LEAN_AND_MEAN)
# define WIN32_LEAN_AND_MEAN
# define _VCL_LEAN_AND_MEAN
# endif
# endif
# include <windows.h>
# include <process.h>
# include <winsock2.h>
#else
# include <windows.h>
# include <process.h>
# include <winsock2.h>
#endif
#include "const.h"
unsigned __stdcall boosterThread(void*);
unsigned __stdcall manageThread(void*);
unsigned __stdcall th075Thread(void*);
unsigned __stdcall recvThread(void*);
unsigned __stdcall sendThread(void*);
typedef struct{
BYTE ID;
BYTE phase;
BYTE place;
BYTE color;
}charInfoStruct;
typedef struct{
charInfoStruct A;
charInfoStruct B;
BYTE phase;
BYTE place;
DWORD gameTime;
BYTE playerSide;
BYTE sessionID;
BYTE sessionIDNext;
BYTE sessionNo;
BYTE terminalMode;
}gameInfoStruct;
typedef struct{
DWORD Away;
DWORD Root;
DWORD Branch;
DWORD subBranch;
DWORD Leaf[4];
DWORD Access;
DWORD Standby[2];
}lastTimeStruct;
class sTaskClass{
public:
SOCKADDR_IN addr;
int dest;
int size;
void* Address;
BYTE data[ stask_buf_size ];
WORD Flg;
sTaskClass();
};
typedef struct{
WORD Access;
WORD Away;
WORD Root;
WORD Branch;
WORD subBranch;
WORD Leaf[4];
WORD Other;
WORD Ready;
}echoFlgStruct;
typedef struct{
WORD argMode;
char targetIP[80];
WORD targetPort;
}argDataStruct;
#endif