
名称
netinet/in.h - Internet address family netinet / in.h - 互联网地址族
SYNOPSIS故事大纲
#include DESCRIPTION描述 The in_port_t in_port_t Equivalent to the type uint16_t as defined in in_addr_t in_addr_t Equivalent to the type uint32_t as defined in The sa_family_t type shall be defined as described in The uint8_t and uint32_t type shall be defined as described in The in_addr_t s_addr in_addr_t s_addr The sa_family_t sin_family AF_INET. in_port_t sin_port Port number. struct in_addr sin_addr IP address. sa_family_t sin_family是AF_INET。in_port_t sin_port端口号。 结构in_addr sin_addr的IP地址。 The sin_port and sin_addr members shall be in network byte order.该sin_port和sin_addr成员应在网络字节顺序。 The sockaddr_in structure is used to store addresses for the Internet address family.该SOCKADDR_IN结构是用来存储家庭地址的Internet地址。 Values of this type shall be cast by applications to struct sockaddr for use with socket functions.值类型转换插座职能,应由申请与使用结构sockaddr的。 [ IP6 ] [ 肌醇 ] [备选案文开始] The uint8_t s6_addr[16] uint8_t s6_addr [16] This array is used to contain a 128-bit IPv6 address, stored in network byte order.这个数组用来包含一个128位的IPv6地址,在网络存储字节顺序。 The sa_family_t sin6_family AF_INET6. sa_family_t sin6_family AF_INET6。 in_port_t sin6_port Port number. in_port_t sin6_port端口号。 uint32_t sin6_flowinfo IPv6 traffic class and flow information. uint32_t sin6_flowinfo IPv6通信类和信息流。 struct in6_addr sin6_addr IPv6 address. 结构in6_addr sin6_addr IPv6地址。 uint32_t sin6_scope_id Set of interfaces for a scope. uint32_t sin6_scope_id范围一套接口。 The sin6_port and sin6_addr members shall be in network byte order.该sin6_port和sin6_addr成员应在网络字节顺序。 The sockaddr_in6 structure shall be set to zero by an application prior to using it, since implementations are free to have additional, implementation-defined fields in sockaddr_in6 .该sockaddr_in6结构应被设置为应用零一前使用它,因为可以自由的实现有执行定义的领域sockaddr_in6增加。 The sin6_scope_id field is a 32-bit integer that identifies a set of interfaces as appropriate for the scope of the address carried in the sin6_addr field.该sin6_scope_id字段是一个32位整数,在该领域的sin6_addr标识一组接口的地址进行适当的范围。 For a link scope sin6_addr , the application shall ensure that sin6_scope_id is a link index.对于一个链接范围sin6_addr的,应当确保sin6_scope_id是一个环比价格指数。 For a site scope sin6_addr , the application shall ensure that sin6_scope_id is a site index.对于一个场址范围sin6_addr的,应当确保sin6_scope_id是一个网站的索引。 The mapping of sin6_scope_id to an interface or set of interfaces is implementation-defined.该接口映射到一个或接口sin6_scope_id集是实现定义。 The const struct in6_addr in6addr_any 常量结构in6_addr in6addr_any This variable is initialized by the system to contain the wildcard IPv6 address.这个变量是由系统初始化包含通配符的IPv6地址。 The The const struct in6_addr in6addr_loopback 常量结构in6_addr in6addr_loopback This variable is initialized by the system to contain the loopback IPv6 address.这个变量是由系统初始化,控制回路的IPv6地址。 The The struct in6_addr ipv6mr_multiaddr IPv6 multicast address. 结构in6_addr ipv6mr_multiaddr IPv6组播地址。 unsigned ipv6mr_interface Interface index. 未签名的ipv6mr_interface接口索引。 [备选案文完] The IPPROTO_IP IPPROTO_IP Internet protocol.互联网协议。 IPPROTO_IPV6 IPPROTO_IPV6 [ IP6 ] [ 肌醇 ] [备选案文开始] Internet Protocol Version 6. Internet协议版本6。 [备选案文完] IPPROTO_ICMP IPPROTO_ICMP Control message protocol.控制消息协议。 IPPROTO_RAW IPPROTO_RAW [ RS ] [ 遥感 ] [备选案文开始] Raw IP Packets Protocol.原始IP数据包协议。 [备选案文完] IPPROTO_TCP IPPROTO_TCP Transmission control protocol.传输控制协议。 IPPROTO_UDP IPPROTO_UDP User datagram protocol.用户数据报协议。 The INADDR_ANY INADDR_ANY IPv4 local host address. IPv4的本地主机地址。 INADDR_BROADCAST INADDR_BROADCAST IPv4 broadcast address. IPv4的广播地址。 The INET_ADDRSTRLEN INET_ADDRSTRLEN 16. 16。 Length of the string form for IP.长度为IP字符串形式。 The htonl () , htons () , ntohl () , and ntohs () functions shall be available as defined in [ IP6 ] [ 肌醇 ] [备选案文开始] The INET6_ADDRSTRLEN INET6_ADDRSTRLEN 46. 46。 Length of the string form for IPv6.长度为IPv6的字符串形式。 The IPV6_JOIN_GROUP IPV6_JOIN_GROUP Join a multicast group.加入一个多播组。 IPV6_LEAVE_GROUP IPV6_LEAVE_GROUP Quit a multicast group.退出一个多播组。 IPV6_MULTICAST_HOPS IPV6_MULTICAST_HOPS Multicast hop limit.组播跳的。 IPV6_MULTICAST_IF IPV6_MULTICAST_IF Interface to use for outgoing multicast packets.即将离任的接口用于多播数据包。 IPV6_MULTICAST_LOOP IPV6_MULTICAST_LOOP Multicast packets are delivered back to the local application.多播数据包被传递回本地应用程序。 IPV6_UNICAST_HOPS IPV6_UNICAST_HOPS Unicast hop limit.单播跳的。 IPV6_V6ONLY IPV6_V6ONLY Restrict AF_INET6 socket to IPv6 communications only.AF_INET6到IPv6通讯插座只。 The IN6_IS_ADDR_UNSPECIFIED IN6_IS_ADDR_UNSPECIFIED Unspecified address.未指定地址。 IN6_IS_ADDR_LOOPBACK IN6_IS_ADDR_LOOPBACK Loopback address.环回地址。 IN6_IS_ADDR_MULTICAST IN6_IS_ADDR_MULTICAST Multicast address.组播地址。 IN6_IS_ADDR_LINKLOCAL IN6_IS_ADDR_LINKLOCAL Unicast link-local address.单播链路本地地址。 IN6_IS_ADDR_SITELOCAL IN6_IS_ADDR_SITELOCAL Unicast site-local address.单播站点本地地址。 IN6_IS_ADDR_V4MAPPED IN6_IS_ADDR_V4MAPPED IPv4 mapped address.映射的IPv4地址。 IN6_IS_ADDR_V4COMPAT IN6_IS_ADDR_V4COMPAT IPv4-compatible address. IPv4兼容地址。 IN6_IS_ADDR_MC_NODELOCAL IN6_IS_ADDR_MC_NODELOCAL Multicast node-local address.组播节点本地地址。 IN6_IS_ADDR_MC_LINKLOCAL IN6_IS_ADDR_MC_LINKLOCAL Multicast link-local address.组播链路本地地址。 IN6_IS_ADDR_MC_SITELOCAL IN6_IS_ADDR_MC_SITELOCAL Multicast site-local address.组播站点本地地址。 IN6_IS_ADDR_MC_ORGLOCAL IN6_IS_ADDR_MC_ORGLOCAL Multicast organization-local address.组播组织本地地址。 IN6_IS_ADDR_MC_GLOBAL IN6_IS_ADDR_MC_GLOBAL Multicast global address.全球多播地址。 [备选案文完]
