socket 地址结构体定义
来源:互联网 发布:太原理工大 软件学院吧 编辑:程序博客网 时间:2024/05/21 14:54
IPV4
struct sockaddr_in {
__kernel_sa_family_t sin_family; /* Address family */__be16 sin_port; /* Port number */
struct in_addr sin_addr; /* Internet address */
/* Pad to size of `struct sockaddr'. */
unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) -
sizeof(unsigned short int) - sizeof(struct in_addr)];
};
IPV6
struct sockaddr_in6 {
unsigned short int sin6_family; /* AF_INET6 */
__be16 sin6_port; /* Transport layer port # */
__be32 sin6_flowinfo; /* IPv6 flow information */
struct in6_addr sin6_addr; /* IPv6 address */
__u32 sin6_scope_id; /* scope id (new in RFC2553) */
};
通用地址结构
struct sockaddr {
sa_family_t sa_family; /* address family, AF_xxx */
char sa_data[14]; /* 14 bytes of protocol address */
};
- socket 地址结构体定义
- socket地址结构体
- socket常用地址定义
- socket 的地址结构
- socket 的地址结构
- socket 的地址结构
- socket 的地址结构
- socket 的地址结构
- socket 的地址结构
- socket 的地址结构
- socket 的地址结构
- socket地址结构描述
- Socket地址结构
- SOCKET地址结构
- Socket地址结构解析
- Socket各结构体定义以及Socket编程函数集(非常有用)
- socket+结构在+linux+中的定义
- TCP/IP - 3.2 地址结构定义
- Andriod 学习之六 Activity - ListView
- ASIHTTPRequest Understanding persistent connection reuse
- spoj227. Ordering the Soldiers
- 带有CheckBox的CListCtrl中Check状态的获取
- ubuntu搭建jsp环境
- socket 地址结构体定义
- Html标签页的实现说明及结合JS基于对象特性的实现对比
- char *p = "123"和char a[] = "123"根本就不同 .
- mac 锐捷
- ibatis 的 $ 与 # 区别
- webView
- 手动添加消息
- POJ2002 Squares
- 70道经典Android题加答案--重要知识点几乎都涉及到了