Programmable Gateways
Login
Overview
Power Industry
Serial Device Server
Programmable Gateways
Serial/Ethernet Gateway XNUT-100
CAN/Ethernet Gateway XNUT-105
Ethernet CPU Boards
Shop
Information and Support
Main Page
|
Modules
|
Data Structures
|
File List
|
Data Fields
|
Globals
|
Related Pages
|
Examples
tcphdr Struct Reference
#include <netinet/tcp.h>
Detailed Description
TCP protocol header structure.
Data Fields
u_short
th_sport
Source port.
u_short
th_dport
Destination port.
u_long
th_seq
Sequence number of first octet in this segment.
u_long
th_ack
Expected sequence number of next octet.
u_char
th_x2
:4
Unused.
u_char
th_off
:4
Data offset.
u_char
th_flags
Control flags.
u_short
th_win
Number of acceptable octects.
u_short
th_sum
96 byte pseudo header checksum
u_short
th_urp
Urgent data pointer.