Add socket() function to windows ws32 bindings
It looks like this was missing from the winsock bindings. Odin contains WSASocketW which I assume would also work for obtaining a socket, but socket() is distinct and is what I was using, so I assume others will want it too.
This commit is contained in:
1 parent
cefe312ba1
commit
c67c0789eb
1 file changed
+5
@@ -39,6 +39,11 @@ foreign ws2_32 {
|
|||||||
g: GROUP,
|
g: GROUP,
|
||||||
dwFlags: DWORD,
|
dwFlags: DWORD,
|
||||||
) -> SOCKET ---
|
) -> SOCKET ---
|
||||||
|
socket :: proc(
|
||||||
|
af: c_int,
|
||||||
|
type: c_int,
|
||||||
|
protocol: c_int,
|
||||||
|
) -> SOCKET ---
|
||||||
|
|
||||||
ioctlsocket :: proc(s: SOCKET, cmd: c_long, argp: ^c_ulong) -> c_int ---
|
ioctlsocket :: proc(s: SOCKET, cmd: c_long, argp: ^c_ulong) -> c_int ---
|
||||||
closesocket :: proc(socket: SOCKET) -> c_int ---
|
closesocket :: proc(socket: SOCKET) -> c_int ---
|
||||||
|
|||||||
Reference in new issue
Block a user