1 Star 0 Fork 4.9K

Lin_bruin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
netdb-h.md 6.84 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

netdb.h

Overview

Related Modules:

NET

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.

1
https://gitee.com/dreaminghell/docs.git
git@gitee.com:dreaminghell/docs.git
dreaminghell
docs
docs
master

搜索帮助