-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNetwork.bi
More file actions
37 lines (30 loc) · 1.61 KB
/
Network.bi
File metadata and controls
37 lines (30 loc) · 1.61 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
#ifndef NETWORK_BI
#define NETWORK_BI
#ifndef unicode
#define unicode
#endif
#include once "windows.bi"
#include once "win\winsock2.bi"
#include once "win\ws2tcpip.bi"
Declare Function ConnectToServer( _
ByVal Server As WString Ptr, _
ByVal Port As WString Ptr, _
ByVal LocalAddress As WString Ptr, _
ByVal LocalPort As WString Ptr _
)As SOCKET
Declare Function CreateSocketAndListen( _
ByVal LocalAddress As WString Ptr, _
ByVal LocalPort As WString Ptr _
)As SOCKET
Declare Sub CloseSocketConnection( _
ByVal mSock As SOCKET _
)
Declare Function CreateSocketAndBind( _
ByVal LocalAddress As WString Ptr, _
ByVal LocalPort As WString Ptr _
)As SOCKET
Declare Function ResolveHost( _
ByVal Server As WString Ptr, _
ByVal Port As WString Ptr _
)As addrinfoW Ptr
#endif