您的位置:首页 > 其它

ns2中基本变量类型定义

2013-07-23 19:54 274 查看
以下是在文件:/ns-allinone-2.34/ns-2.34/autoconf-win32.h,中65行

typedef
char
int8_t;

typedef
unsigned
char
int8_t;

typedef
short
int16_t;

typedef
unsigned
short u_int16_t;

typedef
int
int32_t;

typedef
unsigned
int u_int32_t;

typedef __int64
int64_t;

typedef
unsigned
__int64 u_int64_t;

以下是在文件:/ns-allinone-2.34/ns-2.34/config.h,中76行

typedef int32_t
nsaddr_t;

typedef int32_t
nsmask_t;

struct
ns_addr_t {

int32_t
addr_;

int32_t
port_;

//以下可不用管

#ifdef __cplusplus

bool isEqual
(ns_addr_t const &o) {

return
((addr_ == o.addr_) && (port_ ==
o.port_))?true:false;

}

#endif

};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐