GNRC TCP API. More...
GNRC TCP API.
Definition in file tcp.h.
#include <stdint.h>
#include "net/gnrc/pkt.h"
#include "net/gnrc/tcp/tcb.h"
#include "net/gnrc/ipv6.h"
Go to the source code of this file.
Data Structures | |
struct | gnrc_tcp_ep_t |
Address information for a single TCP connection endpoint. More... | |
Functions | |
int | gnrc_tcp_ep_init (gnrc_tcp_ep_t *ep, int family, const uint8_t *addr, size_t addr_size, uint16_t port, uint16_t netif) |
Initialize TCP connection endpoint. More... | |
int | gnrc_tcp_ep_from_str (gnrc_tcp_ep_t *ep, const char *str) |
Construct TCP connection endpoint from string. More... | |
int | gnrc_tcp_init (void) |
Initialize TCP. More... | |
void | gnrc_tcp_tcb_init (gnrc_tcp_tcb_t *tcb) |
Initialize Transmission Control Block (TCB) More... | |
int | gnrc_tcp_open_active (gnrc_tcp_tcb_t *tcb, const gnrc_tcp_ep_t *remote, uint16_t local_port) |
Opens a connection actively. More... | |
int | gnrc_tcp_open_passive (gnrc_tcp_tcb_t *tcb, const gnrc_tcp_ep_t *local) |
Opens a connection passively, by waiting for an incoming request. More... | |
ssize_t | gnrc_tcp_send (gnrc_tcp_tcb_t *tcb, const void *data, const size_t len, const uint32_t user_timeout_duration_ms) |
Transmit data to connected peer. More... | |
ssize_t | gnrc_tcp_recv (gnrc_tcp_tcb_t *tcb, void *data, const size_t max_len, const uint32_t user_timeout_duration_ms) |
Receive Data from the peer. More... | |
void | gnrc_tcp_close (gnrc_tcp_tcb_t *tcb) |
Close a TCP connection. More... | |
void | gnrc_tcp_abort (gnrc_tcp_tcb_t *tcb) |
Abort a TCP connection. More... | |
int | gnrc_tcp_calc_csum (const gnrc_pktsnip_t *hdr, const gnrc_pktsnip_t *pseudo_hdr) |
Calculate and set checksum in TCP header. More... | |
gnrc_pktsnip_t * | gnrc_tcp_hdr_build (gnrc_pktsnip_t *payload, uint16_t src, uint16_t dst) |
Adds a TCP header to a given payload. More... | |