AF_INET address family
来源:互联网 发布:ge矩阵分析法 编辑:程序博客网 时间:2024/06/05 02:31
This address family provides Inter Process Communications between processesthat run on the same system or on different systems. Addresses for AF_INETsockets are IP addresses and port number. You can specify an IP address foran AF_INET socket either as an IP address, such as 130.99.128.1, or in its32–bit form, X'82638001'.
For a socket application that uses the Internet Protocol version4 (IPv4), the AF_INET address family uses the sockaddr_in address structure. When you use _XOPEN_SOURCE macro, the AF_INET addressstructure changes to be compatible with BSD 4.4/UNIX 98 specifications. Forthe sockaddr_in address structure, these differences are summarized in thetable:
struct sockaddr_in {
short sin_family;
u_short sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};
struct sockaddr_in {
uint8_t sin_len;
sa_family_t sin_family;
u_short sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};
AF_INET address family sockets can be either connection-oriented (type SOCK_STREAM)or they can be connectionless (type SOCK_DGRAM). Connection-oriented AF_INETsockets use TCP as the transport protocol. Connectionless AF_INET socketsuse UDP as the transport protocol. When you create an AF_INET domain socket,you specify AF_INET for the address family in the socket program. AF_INETsockets can also use a type of SOCK_RAW. If this type is set, the applicationconnects directly to the IP layer and does not use either the TCP or UDP transports.
- AF_INET address family
- Address family not supported by protocol family.
- address family numbers from RFC1700
- Address Family is not supported
- 异常Address family not supported by protocol family
- ICE 异常Address family not supported by protocol family
- Address family not supported by protocol family: connect
- Strom本地模式Address family not supported by protocol family
- Net exception:Address family not supported
- BGP 地址族分析 - Address-family
- 解决android网络异常java.net.SocketException: Bad address family
- Android模拟器遭遇Address family not supported by protocol异常
- 内核中socket address family的注册过程
- send-mail: warning: inet_protocols: IPv6 support is disabled: Address family
- [Trouble Shoot]启动GlassFish时的Address family not supported by protocol family问题
- java.net.SocketException: Address family not supported by protocol family: connect
- FAMILY
- family
- c语言的一些格式
- 男子见义勇为追赶小偷致其死亡获缓刑
- Struts2 学习 第一章 struts2中Action类的使用
- shell编程范例之字符串操作[转]
- darkstar处理超时,分解Task的方案!
- AF_INET address family
- Asp.net页面使用showModalDialog时Postback弹出新页面解决办法
- 用C++读取、修改和保存位图
- 如何打开MySQL中root账户的远程登录
- 堆栈和栈
- 无法删除文件无法读源文件或磁盘的解决办法
- 从今开始写博客,努力中
- ASN.1编码学习笔记一
- 手把手教你如何配置和编译ogre 1.7.0 + cegui 0.7.1