-
Notifications
You must be signed in to change notification settings - Fork 0
/
NETWORK.H
53 lines (49 loc) · 2.27 KB
/
NETWORK.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
typedef int (CALLBACK *LPWSAASYNCSELECT)(SOCKET, HWND, u_int, long);
typedef int (CALLBACK *LPCONNECT)(SOCKET, const struct sockaddr FAR *, int);
typedef int (CALLBACK *LPRECV)(SOCKET, char FAR *, int, int);
typedef int (CALLBACK *LPWSAGETLASTERROR)(void);
typedef SOCKET (CALLBACK *LPACCEPT)(SOCKET, struct sockaddr FAR *, int FAR *);
typedef u_short (CALLBACK *LPHTONS)(u_short);
typedef u_long (CALLBACK *LPHTONL)(u_long);
typedef u_long (CALLBACK *LPINET_ADDR)(const char FAR *);
typedef int (CALLBACK *LPSETSOCKOPT)(SOCKET, int, int, const char FAR *, int);
typedef int (CALLBACK *LPBIND)(SOCKET, const struct sockaddr FAR *, int);
typedef int (CALLBACK *LPLISTEN)(SOCKET, int);
typedef int (CALLBACK *LPCLOSESOCKET)(SOCKET);
typedef int (CALLBACK *LPSEND)(SOCKET, const char FAR *, int, int);
typedef int (CALLBACK *LPSHUTDOWN)(SOCKET, int);
typedef SOCKET (CALLBACK *LPSOCKET)(int, int, int);
typedef int (CALLBACK *LPGETHOSTNAME)(char FAR * name, int namelen);
typedef struct hostent FAR * (CALLBACK *LPGETHOSTBYNAME)(const char FAR *);
typedef int (CALLBACK *LPWSASTARTUP)(WORD, LPWSADATA);
typedef int (CALLBACK *LPWSACLEANUP)();
typedef void (CALLBACK *LPWSASETLASTERROR)(int);
typedef HANDLE (CALLBACK *LPWSAASYNCGETHOSTBYNAME)(HWND, u_int, const char FAR *, char FAR *, int);
typedef HANDLE (CALLBACK *LPWSAASYNCGETHOSTBYADDR)(HWND, u_int, const char FAR *, int, int, char FAR *, int);
extern LPWSAASYNCSELECT lpWSAAsyncSelect;
extern LPCONNECT lpconnect;
extern LPRECV lprecv;
extern LPWSAGETLASTERROR lpWSAGetLastError;
extern LPACCEPT lpaccept;
extern LPHTONS lphtons;
extern LPHTONL lphtonl;
extern LPINET_ADDR lpinet_addr;
extern LPSETSOCKOPT lpsetsockopt;
extern LPBIND lpbind;
extern LPLISTEN lplisten;
extern LPCLOSESOCKET lpclosesocket;
extern LPSEND lpsend;
extern LPSHUTDOWN lpshutdown;
extern LPSOCKET lpsocket;
extern LPGETHOSTNAME lpgethostname;
extern LPGETHOSTBYNAME lpgethostbyname;
extern LPGETHOSTBYNAME lpgethostbyaddr;
extern LPWSASTARTUP lpWSAStartup;
extern LPWSACLEANUP lpWSACleanup;
extern LPWSASETLASTERROR lpWSASetLastError;
extern LPWSAASYNCGETHOSTBYNAME lpWSAAsyncGetHostByName;
extern LPWSAASYNCGETHOSTBYADDR lpWSAAsyncGetHostByAddr;
extern BOOL NetworkStartup();
extern void NetworkShutdown();
extern LPSTR WSAGetLastErrorString( int error_arg );
extern HMODULE hWinSockDLL;