summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-23 21:01:46 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-23 21:01:46 -0600
commit39a8ac10ccefcce4e47c3dd5493a6ebe7b0e8f9a (patch)
tree73c3013c8de9bd477ff3547652a6df2e2185d7a9 /cmd
parente7378b9f9b122e05baebce387fe9c3844c0736b6 (diff)
wip
Diffstat (limited to 'cmd')
-rw-r--r--cmd/sbc_harness/hw/w5500.c4
-rw-r--r--cmd/sbc_harness/hw/w5500.h10
2 files changed, 11 insertions, 3 deletions
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_ */