std1.0.0-beta-7 SafeC docs

std :: net::tcp

Function std::tcp_parse

#include <std/net/tcp.h> source ยท definition

int tcp_parse(&PacketBuf pkt, unsigned long offset, &TcpHdr hdr_out)

Parse TCP header from pkt at byte offset offset. Returns 0 on success, -1 if the packet is truncated or the data offset is invalid.