-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathMyWinsockBase.h
More file actions
53 lines (37 loc) · 831 Bytes
/
MyWinsockBase.h
File metadata and controls
53 lines (37 loc) · 831 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// ------------------------------
// Decompiled by Deathway
// Date : 2007-03-09
// ------------------------------
#ifndef MYWINSOCKBASE_H
#define MYWINSOCKBASE_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MY_WINSOCK_VERSION 0x202 // 2.2
#include <winsock2.h>
typedef void (*WsProtocolCore)(BYTE,LPBYTE, int);
class MyWinsockBase
{
private:
BOOL Startup();
public:
BOOL CreateSocket(HWND hWnd);
BOOL Close(SOCKET socket);
BOOL Close();
BOOL Close2(SOCKET socket);
SOCKET GetSocket();
int GetSendBuffSize();
int GetRecvBuffSize();
BOOL GetConnect();
void SetConnect(BOOL connected);
MyWinsockBase();
~MyWinsockBase();
protected:
int m_iMaxSockets; // 0
HWND m_hWnd; // 4
SOCKET m_socket; // 8
int m_sendbufsize; // C
int m_recvbufsize; // 10
BOOL m_Connect; // 14
};
#endif