/* srv9p/gnet.h - libmisc/net.h 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 { implements_net_conn; int fd; }; struct gnet_listener { implements_net_listener; int fd; struct _gnet_conn active_conn; }; void gnet_listener_init(struct gnet_listener *self, uint16_t port); #endif /* _GNET_H_ */