-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwinsockx.h
34 lines (34 loc) · 921 Bytes
/
winsockx.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
#include<windows.h>
#define MTU_SIZE 1460
#define INPUT_SIZE 8192
#define BUF_SIZE 1024
#define ERR_SIZE 512
#define MAXUSERNAME 64
#define MAXPASSWORD 32
#define MAXFILENAME 64
/*async notification message*/
#define WSA_ASYNC WM_USER+1
/*WinSock DLL info*/
extern WSADATA stWSADATA;
/*for error messages*/
extern char *aszWSAEvent[7];
/*screen I/O data buffer*/
extern char achTempBuf[BUF_SIZE];
/*temporary work file name*/
extern char szTempFile[10];
/*main window handle*/
extern HWND hWinMain;
/*instance handle*/
extern HINSTANCE hInst;
/*---Library function prototypes---*/
void CenterWnd(HWND,HWND,BOOL);
int CloseConn(SOCKET, LPSTR, int, HWND);
HFILE CreateLclFile(LPSTR);
BOOL CALLBACK Dlg_About(HWND, UINT, UINT, LPARAM);
u_long GetAddr(LPSTR);
int GetBuf(SOCKET, int, int);
LONG GetHostID(void);
BOOL GetLclDir(LPSTR szTempFile);
u_short GetPort(LPSTR);
void WSAperror(int, LPSTR);
int WSAErrStr(int, LPSTR);