summaryrefslogtreecommitdiff
path: root/netio.h
blob: 53233cb4a800385f22872e824b7f5a1c284fa32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _NETIO_H_
#define _NETIO_H_

#include <stdint.h>
#include <stdbool.h>

int netio_listen(uint16_t port);
int netio_accept(int sock);
int netio_read(int conn, void *buf, size_t count);
int netio_write(int conn, void *buf, size_t count);
int netio_close(int conn, bool rd, bool wr);

#endif /* _NETIO_H_ */