/* gnet.c - libnet implementation for libcr + GNU libc * * Copyright (C) 2024 Luke T. Shumaker * SPDX-Licence-Identifier: AGPL-3.0-or-later */ #ifndef _GNET_H_ #define _GNET_H_ #include /* for uint16_6 */ #include struct _gnet_conn { struct libnet_conn_vtable *vtable; int fd; }; struct gnet_listener { struct libnet_listener_vtable *vtable; int fd; struct _gnet_conn active_conn; }; void gnet_listener_init(struct gnet_listener *self, uint16_t port); #endif /* _GNET_H_ */