AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database

Declaration for 

tcphdr from NetLib:netinet.h.tcp

(Struct)
/*
* Structure of a TCP header
*/

struct tcphdr {
u_short th_sport;            /* Source port */
u_short th_dport;            /* Destination port */
tcp_seq th_seq;              /* Sequence number */
tcp_seq th_ack;              /* Acknowledgement number */
u_int   th_x2  : 4;          /* Unused */
u_int   th_off : 4;          /* Data offset */
u_int   th_flags : 8;        /* Flags */
#define TH_FIN  0x01
#define TH_SYN  0x02
#define TH_RST  0x04
#define TH_PUSH 0x08
#define TH_ACK  0x10
#define TH_URG  0x20
u_int   th_win:16;           /* Advertised window */
u_short th_sum;              /* Checksum */
u_short th_urp;              /* Urgent pointer */
};



Open original source file

See header files's help page


[sh-index] Back to list of manuals