From 39a8ac10ccefcce4e47c3dd5493a6ebe7b0e8f9a Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 23 Oct 2024 21:01:46 -0600 Subject: wip --- cmd/sbc_harness/hw/w5500.c | 4 +++- cmd/sbc_harness/hw/w5500.h | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/sbc_harness/hw/w5500.c b/cmd/sbc_harness/hw/w5500.c index ab1ac19..78e4027 100644 --- a/cmd/sbc_harness/hw/w5500.c +++ b/cmd/sbc_harness/hw/w5500.c @@ -374,7 +374,7 @@ static implements_net_stream_conn *w5500_tcp_accept(implements_net_stream_listen } } -/* conn methods ***************************************************************/ +/* tcp_conn methods ***********************************************************/ static struct _w5500_tcp_listener *w5500_tcp_conn_listener(struct _w5500_tcp_conn *conn) { assert(conn); @@ -505,3 +505,5 @@ static int w5500_tcp_close(implements_net_stream_conn *_self, bool rd, bool wr) return 0; } + +/* udp_conn methods ***********************************************************/ diff --git a/cmd/sbc_harness/hw/w5500.h b/cmd/sbc_harness/hw/w5500.h index cf28579..b50ff83 100644 --- a/cmd/sbc_harness/hw/w5500.h +++ b/cmd/sbc_harness/hw/w5500.h @@ -89,7 +89,13 @@ struct w5500_netcfg { */ void w5500_netcfg(struct w5500 *self, struct w5500_netcfg cfg); -implements_net_stream_listener *w5500_listen(struct w5500 *self, uint8_t socknum, - uint16_t port); +implements_net_stream_listener *w5500_tcp_listen(struct w5500 *self, uint8_t socknum, + uint16_t port); + +/** + * TODO. + */ +implements_net_packet_conn *w5500_udp_conn(struct w5500 *self, uint8_t socknum, + uint16_t port); #endif /* _HW_W5500_H_ */ -- cgit v1.2.3-2-g168b