Async check if closed

This commit is contained in:
2023-01-02 16:52:18 +01:00
parent a4c0093fbe
commit 51d85cc99f
4 changed files with 78 additions and 45 deletions

View File

@ -9,11 +9,15 @@
#ifndef SESIMOS_ASYNC_H
#define SESIMOS_ASYNC_H
#include "lib/sock.h"
#include <poll.h>
#define ASYNC_KEEP 1
int async(int fd, short events, int flags, void cb(void *), void *arg, void err_cb(void *), void *err_arg);
int async(sock *s, short events, int flags, void cb(void *), void *arg, void err_cb(void *), void *err_arg);
int async_fd(int fd, short events, int flags, void cb(void *), void *arg, void err_cb(void *), void *err_arg);
void async_thread(void);