diff options
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h index 93343b9..2851c50 100644 --- a/src/server.h +++ b/src/server.h @@ -34,6 +34,7 @@ typedef struct server_ctx { server_callbacks server_cbs; server_data server_dat; psocket sock; + char host_buf[NI_MAXHOST], service_buf[NI_MAXSERV]; } server_ctx; typedef int (*init_cb) (struct server_ctx *ctx); @@ -44,7 +45,7 @@ server_init_ctx(server_ctx *ctx, init_cb init_fn); int server_validate_ctx(const server_ctx *ctx); -int server_setup_epoll(const server_ctx ctx[], size_t siz); +int server_setup_epoll(server_ctx ctx[], size_t siz); int server_mainloop_epoll(int epoll_fd, const server_ctx ctx[], size_t siz); |