1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 17:27:18 +00:00
This commit is contained in:
Calvin Rose 2020-11-14 14:55:26 -06:00
parent 16cf7681f0
commit 7d0b1955a2
2 changed files with 2 additions and 2 deletions

View File

@ -789,7 +789,7 @@ JanetListenerState *janet_listen(JanetStream *stream, JanetListener behavior, in
if (NULL == CreateIoCompletionPort(stream->handle, janet_vm_iocp, (ULONG_PTR) stream, 0)) {
janet_panic("failed to listen for events");
}
stream->flags |= JANET_POLL_FLAG_IOCP;
stream->flags |= JANET_STREAM_IOCP;
}
return state;
}

View File

@ -502,7 +502,7 @@ typedef void *JanetAbstract;
#define JANET_STREAM_CLOSED 0x1
#define JANET_STREAM_SOCKET 0x2
#define JANET_STREAM_ICOP 0x4
#define JANET_STREAM_IOCP 0x4
#define JANET_STREAM_READABLE 0x200
#define JANET_STREAM_WRITABLE 0x400
#define JANET_STREAM_ACCEPTABLE 0x800