diff options
author | dzwdz | 2023-09-02 22:39:59 +0200 |
---|---|---|
committer | dzwdz | 2023-09-02 22:39:59 +0200 |
commit | fd80c0b227336f4650d6b54d82469feb017aeded (patch) | |
tree | 8992f0a6d9626d9666984b55ce2ed2eaceb856bf /src/cmd/netstack/proto.h | |
parent | c8d6ce89f19aaa459d5a86c7909d3f3b6aac15d4 (diff) |
netstack: only return from open() once the socket connects
Diffstat (limited to 'src/cmd/netstack/proto.h')
-rw-r--r-- | src/cmd/netstack/proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |