1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 07:33:01 +00:00

changed net/connect to be non-blocking / asynchronous

This commit is contained in:
Ico Doornekamp
2023-05-16 17:10:16 +02:00
parent 148917d4ca
commit 8d78fb1f6b
3 changed files with 63 additions and 11 deletions

View File

@@ -1479,6 +1479,7 @@ JANET_API void janet_ev_readchunk(JanetStream *stream, JanetBuffer *buf, int32_t
JANET_API void janet_ev_recv(JanetStream *stream, JanetBuffer *buf, int32_t nbytes, int flags);
JANET_API void janet_ev_recvchunk(JanetStream *stream, JanetBuffer *buf, int32_t nbytes, int flags);
JANET_API void janet_ev_recvfrom(JanetStream *stream, JanetBuffer *buf, int32_t nbytes, int flags);
JANET_API void janet_ev_connect(JanetStream *stream, int flags);
#endif
/* Write async to a stream */