You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
333 B

typedef void (*network_callback)(int fd, void *data);
void network_worker_init(void);
void network_worker_deinit(void);
void *network_connect(const char *host, int port, network_callback callback, void *data);
int network_listen(int port, int tcp);
#endif /* NETWORK_WORKER_H */