-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
Currently connect is used on Windows to establish connections. This is a blocking call, WinSock 2 offers LPFN_CONNECTEX (that take OVERLAPPED) for asynchronous connect calls.
Lines 540 to 549 in 07bcffa
.connect => |*v| action: { | |
const result = windows.ws2_32.connect(asSocket(v.socket), &v.addr.any, @as(i32, @intCast(v.addr.getOsSockLen()))); | |
if (result != 0) { | |
const err = windows.ws2_32.WSAGetLastError(); | |
break :action switch (err) { | |
else => .{ .result = .{ .connect = windows.unexpectedWSAError(err) } }, | |
}; | |
} | |
break :action .{ .result = .{ .connect = {} } }; | |
}, |
Metadata
Metadata
Assignees
Labels
No labels