
文章插圖
大家好,小跳來為大家解答以上的問題 。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怎么用兩個條件導出單價
