加入收藏
举报
当前仅显示指定条件回帖 [ 展开查看全部 ]
02-14 20:03
#
文件名称:
netdb-h.md
所在目录:
Openharmony v1.0 / docs / docs-en / api / api-SmartVision-Devices
文件大小:
6.80 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# netdb.h
## **Overview**
**Related Modules:**
[NET](net.md)
**Description:**
Provides functions and data structures related to network operations. For example, you can use the functions to send and receive network data, manage network addresses, and convert bytes.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures









Data Structure Name


Description


hostent


Describes the host name and address information.



## Macros









Macro Name and Value


Description


h_addr h_addr_list[0]


Defines the first address in h_addr_list for backward compatibility.



## Functions
























Function Name


Description


setprotoent (int stayopen)


void


Opens a connection to the database and sets the next entry to the first entry.


getprotoent (void)


struct protoent *


Retrieves the current protocol information.


getprotobyname (const char *name)


struct protoent *


Retrieves the information about a specified protocol.


getprotobynumber (int num)


struct protoent *


Retrieves the information about a protocol with the specified number.


herror (const char *msg)


void


Prints error information.


hstrerror (int ecode)


const char *


Retrieves error information associated with the specified error number.


点赞 回复
回帖
支持markdown部分语法 ?