A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers tcphdr.h Source File

tcphdr.h

00001 extern void TcpHdrLog(uint16_t calculatedChecksum);
00002 
00003 extern void TcpHdrReadFromPacket(void* pPacket);
00004 
00005 extern void TcpHdrWriteToPacket(void* pPacket);
00006 extern void TcpHdrSetChecksum(char* pPacket, uint16_t value);
00007 
00008 extern void TcpHdrMakeEmpty(void);
00009 
00010 extern uint16_t TcpHdrSrcPort;
00011 extern uint16_t TcpHdrDstPort;
00012 extern uint32_t TcpHdrSeqNum;
00013 extern uint32_t TcpHdrAckNum;
00014 extern int      TcpHdrSizeGet(void);
00015 extern bool     TcpHdrURG; //indicates that the Urgent pointer field is significant
00016 extern bool     TcpHdrACK; //indicates that the Acknowledgment field is significant. All packets after the initial SYN packet sent by the client should have this flag set.
00017 extern bool     TcpHdrPSH; //Push function. Asks to push the buffered data to the receiving application.
00018 extern bool     TcpHdrRST; //Reset the connection
00019 extern bool     TcpHdrSYN; //Synchronize sequence numbers. Only the first packet sent from each end should have this flag set. Some other flags and fields change meaning based on this flag, and some are only valid for when it is set, and others when it is clear.
00020 extern bool     TcpHdrFIN; //No more data from sender
00021 extern uint16_t TcpHdrWindow;
00022 extern uint16_t TcpHdrChecksum;
00023 extern uint16_t TcpHdrUrgent;
00024 
00025 extern uint16_t TcpHdrMssGet(void);
00026 extern void     TcpHdrMssSet(uint16_t value);