首页| 论坛| 消息

标题:qt designer 编程时遇到的问题?
作者:ediml
日期:2006-05-07 12:40
内容:

//def_type.h
typedef struct iphdr{

unsigned int ip_version :4; //ip version set to 4
unsigned int ip_length :4; //length of ip header in 32_bit words
unsigned char ip_tos; //type of service
unsigned shortip_total_len; //total length of ip datagram in byte
unsigned short ip__id; //destification
unsigned short ip_flags; //
unsigned char ip_ttl; //time to live
unsigned char ip_protocal; //identifies the correct transport protocal
unsigned short ip_cksum; //check ip header

unsigned int ip_source; //source of the ip datagram
unsigned int ip_dest; //destination of the datagram
};
struct tcphdr{

unsigned short tcp_source_port;
unsigned short tcp_dest_port;
unsigned int tcp_seq; //sequence of the tcp datagram
unsigned int tcp_ackno; //sequence of the next tcp datagram the reveiver expects
unsigned int tcp_res:6, //little-endian

tcp_hlen:4, //length of tcp header
tcp_urg:1, //urgent pointer
tcp_ack:1, //acknow

tcp_psh:1, //push flag
tcp_rst:1, //reset flag
..


#1 [ediml 05-07 12:43]
不好意思
有点乱,
呵呵
我使用了name space也报同样的错误
#2 [ediml 05-10 15:54]
已经解决了
呵呵
#ifndef

回复 发表
主题 版块