core: Redesigned connect_handler -> ConnectRequest
[lumina.git] / core / include / connect_request.h
blob5c3d35698fa5f0433673c2ff00a39cb14ee72ac5
1 #ifndef CONNECT_REQUEST_H
2 #define CONNECT_REQUEST_H
4 #include "config.h"
6 #include <sys/types.h>
7 #include <sys/socket.h> /* sockaddr */
9 #include "socket_request.h" /* HandlerCallback */
11 ConnectRequest *new_ConnectRequest(core_t *c, HandlerCallback callback, int fd, const struct sockaddr *addr, socklen_t addr_len);
12 void free_ConnectRequest(ConnectRequest *cr);
14 void ConnectRequest_queue(ConnectRequest *cr);
16 int ConnectRequest_getFd(ConnectRequest *cr);
18 #endif