|
@@ -82,6 +82,17 @@ Example Load:
|
|
}
|
|
}
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+LPFN_GETACCEPTEXSOCKADDRS :: #type proc "system" (
|
|
|
|
+ lpOutputBuffer: PVOID,
|
|
|
|
+ dwReceiveDataLength: DWORD,
|
|
|
|
+ dwLocalAddressLength: DWORD,
|
|
|
|
+ dwRemoteAddressLength: DWORD,
|
|
|
|
+ LocalSockaddr: ^^sockaddr,
|
|
|
|
+ LocalSockaddrLength: LPINT,
|
|
|
|
+ RemoteSockaddr: ^^sockaddr,
|
|
|
|
+ RemoteSockaddrLength: LPINT,
|
|
|
|
+)
|
|
|
|
+
|
|
foreign import ws2_32 "system:Ws2_32.lib"
|
|
foreign import ws2_32 "system:Ws2_32.lib"
|
|
@(default_calling_convention="system")
|
|
@(default_calling_convention="system")
|
|
foreign ws2_32 {
|
|
foreign ws2_32 {
|
|
@@ -248,4 +259,4 @@ foreign ws2_32 {
|
|
// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htons)
|
|
// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htons)
|
|
// Prefer using endian-specific integers instead, https://odin-lang.org/docs/overview/#basic-types
|
|
// Prefer using endian-specific integers instead, https://odin-lang.org/docs/overview/#basic-types
|
|
htons :: proc(hostshort: c_ushort) -> c_ushort ---
|
|
htons :: proc(hostshort: c_ushort) -> c_ushort ---
|
|
-}
|
|
|
|
|
|
+}
|