aboutsummaryrefslogtreecommitdiff
path: root/lib/std/event/loop.zig
diff options
context:
space:
mode:
authorJonathan Marler <johnnymarler@gmail.com>2021-06-22 08:05:18 -0600
committerVeikka Tuominen <git@vexu.eu>2021-06-23 12:54:20 +0300
commit0134cb0214131d1a7edb18a48f54f9d25277cf84 (patch)
tree8986cc85906e96106a00dcd6d401d7963e1c7b0f /lib/std/event/loop.zig
parent29945fb8b3b954e846e3f062600a37b7c1ab47d6 (diff)
downloadzig-0134cb0214131d1a7edb18a48f54f9d25277cf84.tar.gz
zig-0134cb0214131d1a7edb18a48f54f9d25277cf84.zip
nice error for unsupported async sockets on Windows
Diffstat (limited to 'lib/std/event/loop.zig')
-rw-r--r--lib/std/event/loop.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig
index bfc204919c..5353341363 100644
--- a/lib/std/event/loop.zig
+++ b/lib/std/event/loop.zig
@@ -894,7 +894,7 @@ pub const Loop = struct {
self: *Loop,
/// This argument is a socket that has been created with `socket`, bound to a local address
/// with `bind`, and is listening for connections after a `listen`.
- sockfd: os.fd_t,
+ sockfd: os.socket_t,
/// This argument is a pointer to a sockaddr structure. This structure is filled in with the
/// address of the peer socket, as known to the communications layer. The exact format of the
/// address returned addr is determined by the socket's address family (see `socket` and the
@@ -911,7 +911,7 @@ pub const Loop = struct {
/// * `SOCK_CLOEXEC` - Set the close-on-exec (`FD_CLOEXEC`) flag on the new file descriptor. See the
/// description of the `O_CLOEXEC` flag in `open` for reasons why this may be useful.
flags: u32,
- ) os.AcceptError!os.fd_t {
+ ) os.AcceptError!os.socket_t {
while (true) {
return os.accept(sockfd, addr, addr_size, flags | os.SOCK_NONBLOCK) catch |err| switch (err) {
error.WouldBlock => {