From fd80c0b227336f4650d6b54d82469feb017aeded Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 2 Sep 2023 22:39:59 +0200 Subject: netstack: only return from open() once the socket connects --- src/cmd/netstack/proto.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd/netstack/proto.h') diff --git a/src/cmd/netstack/proto.h b/src/cmd/netstack/proto.h index 8ea11ac..701cb59 100644 --- a/src/cmd/netstack/proto.h +++ b/src/cmd/netstack/proto.h @@ -97,8 +97,9 @@ void tcp_listen( void (*on_recv)(void *carg), void (*on_close)(void *carg), void *carg); -struct tcp_conn *tcpc_new( +void tcp_connect( struct tcp t, + void (*on_conn)(struct tcp_conn *, void *carg), void (*on_recv)(void *carg), void (*on_close)(void *carg), void *carg); -- cgit v1.2.3