Loading...
Searching...
No Matches
gnrc_tcp_rcvbuf.h File Reference

Functions for allocating and freeing the receive buffer. More...

Detailed Description

Functions for allocating and freeing the receive buffer.

Author
Simon Brummer simon.nosp@m..bru.nosp@m.mmer@.nosp@m.post.nosp@m.eo.de

Definition in file gnrc_tcp_rcvbuf.h.

#include "net/gnrc/tcp/tcb.h"
+ Include dependency graph for gnrc_tcp_rcvbuf.h:

Go to the source code of this file.

void _gnrc_tcp_rcvbuf_init (void)
 Initializes global receive buffer.
 
int _gnrc_tcp_rcvbuf_get_buffer (gnrc_tcp_tcb_t *tcb)
 Allocate receive buffer and assign it to TCB.
 
void _gnrc_tcp_rcvbuf_release_buffer (gnrc_tcp_tcb_t *tcb)
 Release allocated receive buffer.
 

Function Documentation

◆ _gnrc_tcp_rcvbuf_get_buffer()

int _gnrc_tcp_rcvbuf_get_buffer ( gnrc_tcp_tcb_t tcb)

Allocate receive buffer and assign it to TCB.

Parameters
[in,out]tcbTCB that acquires receive buffer.
Returns
Zero on success. -ENOMEM if all receive buffers are currently used.

◆ _gnrc_tcp_rcvbuf_release_buffer()

void _gnrc_tcp_rcvbuf_release_buffer ( gnrc_tcp_tcb_t tcb)

Release allocated receive buffer.

Parameters
[in,out]tcbTCB holding the receive buffer that should be released.