From e7378b9f9b122e05baebce387fe9c3844c0736b6 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 23 Oct 2024 15:21:09 -0600 Subject: wip --- cmd/sbc_harness/hw/w5500.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'cmd/sbc_harness/hw/w5500.h') diff --git a/cmd/sbc_harness/hw/w5500.h b/cmd/sbc_harness/hw/w5500.h index d0c8d48..cf28579 100644 --- a/cmd/sbc_harness/hw/w5500.h +++ b/cmd/sbc_harness/hw/w5500.h @@ -13,21 +13,19 @@ #include "hw/spi.h" -struct _w5500_listener; - -struct _w5500_conn { +struct _w5500_tcp_conn { /* const-after-init */ - implements_net_conn; + implements_net_stream_conn; /* mutable */ bool read_open; bool write_open; }; -struct _w5500_listener { +struct _w5500_tcp_listener { /* const-after-init */ - implements_net_listener; + implements_net_stream_listener; uint8_t socknum; - struct _w5500_conn active_conn; + struct _w5500_tcp_conn active_conn; /* mutable */ uint16_t port; @@ -43,7 +41,7 @@ struct w5500 { /* mutable */ uint16_t next_local_port; - struct _w5500_listener listeners[8]; + struct _w5500_tcp_listener listeners[8]; cr_sema_t intr; }; @@ -91,7 +89,7 @@ struct w5500_netcfg { */ void w5500_netcfg(struct w5500 *self, struct w5500_netcfg cfg); -implements_net_listener *w5500_listen(struct w5500 *self, uint8_t socknum, - uint16_t port); +implements_net_stream_listener *w5500_listen(struct w5500 *self, uint8_t socknum, + uint16_t port); #endif /* _HW_W5500_H_ */ -- cgit v1.2.3-2-g168b