diff options
Diffstat (limited to 'src/user/app/netstack/proto.h')
-rw-r--r-- | src/user/app/netstack/proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/user/app/netstack/proto.h b/src/user/app/netstack/proto.h index 738f09e..30ff864 100644 --- a/src/user/app/netstack/proto.h +++ b/src/user/app/netstack/proto.h @@ -95,6 +95,11 @@ void tcp_listen( void (*on_recv)(void *carg), void (*on_close)(void *carg), void *carg); +struct tcp_conn *tcpc_new( + struct tcp t, + void (*on_recv)(void *carg), + void (*on_close)(void *carg), + void *carg); size_t tcpc_tryread(struct tcp_conn *, void *buf, size_t len); void tcpc_send(struct tcp_conn *, const void *buf, size_t len); void tcpc_close(struct tcp_conn *); |