Chinaunix首页 | 论坛 | 博客
  • 博客访问: 485702
  • 博文数量: 109
  • 博客积分: 2331
  • 博客等级: 大尉
  • 技术积分: 1062
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-24 21:36
文章分类

全部博文(109)

文章存档

2015年(2)

2013年(1)

2012年(78)

2011年(28)

我的朋友

分类: LINUX

2012-02-04 15:15:16

nsaddr_t只是IP地址
ns_addr_t同时包含了端口号:

从config.h的代码中可以看出
typedef int32_t nsaddr_t; 
typedef int32_t nsmask_t; 

/* 32-bit addressing support */
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 /* __cplusplus */
};
阅读(2703) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~