文章插图
大家好,小跳来为大家解答以上的问题 。inet6,af_inet这个很多人还不知道,现在让我们一起来看看吧!
1、生成一个TCP的socketFunction: int socket (int namespace, int style, int protocol) This function creates a socket and specifies communication style style, which should be one of the socket styles listed in 16.2 Communication Styles. The namespace argument specifies the namespace; it must be PF_LOCAL (see section 16.5 The Local Namespace) or PF_INET (see section 16.6 The Internet Namespace). protocol designates the specific protocol (see section 16.1 Socket Concepts); zero is usually right for protocol. The return value from socket is the file descriptor for the new socket, or -1 in case of error. The following errno error conditions are defined for this function: EPROTONOSUPPORT The protocol or style is not supported by the namespace specified. EMFILE The process already has too many file descriptors open. ENFILE The system already has too many file descriptors open. EACCES The process does not have the privilege to create a socket of the specified style or protocol. ENOBUFS The system ran out of internal buffer space. The file descriptor returned by the socket function supports both read and write operations. However, like pipes, sockets do not support file positioning operations. 。
【af_inet inet6】本文到此分享完毕 , 希望对大家有所帮助 。
- 拔牙后多久可以镶牙 全口拔牙后多久可以镶牙
- 易经经典名句 易经经典名句及翻译
- 辽宁工程技术大学研究生院 辽宁工程技术大学研究生院官网
- 如何蒸馒头 如何蒸馒头不粘锅
- 丰田ae86多少钱一辆 2023款丰田威驰价格
- 国税网上纳税申报系统2 0 国税网上申报官网
- 级别工资 级别工资套表
- 广东松田学院 广东松田学院毽球冠军
- 吃素的功德 吃素的老虎
- vlookup怎么用 vlookup怎么用两个条件导出单价