summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
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_ */