diff options
author | dzwdz | 2022-08-23 20:17:03 +0200 |
---|---|---|
committer | dzwdz | 2022-08-23 20:17:03 +0200 |
commit | 975e592f85f05e98ef2b833e560e2c243b8491ec (patch) | |
tree | 7520b5f29dda12d480d1676a75831c30e19049b1 /src/user/app/netstack/proto.h | |
parent | 38cf66edaacc4e58b561bea8a77abfd3facf59fe (diff) |
user/netstack: TCP recv
Diffstat (limited to 'src/user/app/netstack/proto.h')
-rw-r--r-- | src/user/app/netstack/proto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/user/app/netstack/proto.h b/src/user/app/netstack/proto.h index 0c4338b..eed5361 100644 --- a/src/user/app/netstack/proto.h +++ b/src/user/app/netstack/proto.h @@ -92,6 +92,8 @@ void tcp_parse(const uint8_t *buf, size_t len, struct ipv4 ip); void tcp_listen( uint16_t port, void (*on_conn)(struct tcp_conn *, void *carg), + 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_close(struct tcp_conn *); |