-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathnet-get-interfaces.xml
More file actions
148 lines (143 loc) · 3.36 KB
/
net-get-interfaces.xml
File metadata and controls
148 lines (143 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c4ac6c0cfa04e2d7910b0f0aeb2004f49081620b Maintainer: Luffy Status: ready -->
<refentry xml:id="function.net-get-interfaces" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>net_get_interfaces</refname>
<refpurpose>获取网络接口</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>array</type><type>false</type></type><methodname>net_get_interfaces</methodname>
<void/>
</methodsynopsis>
<para>
返回本地机器上的网络接口(适配器)的列举。
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
返回一个关联 &array;,其中 key 是接口的名称,value 是一个接口属性的关联数组。
&return.falseforfailure;。
</para>
<para>
每个接口关联数组包含:
<table>
<title>接口属性</title>
<tgroup cols="2">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>描述</entry>
<entry>
用于描述接口的可选字符串值。
仅限 Windows。
</entry>
</row>
<row>
<entry>mac</entry>
<entry>
接口的 MAC 地址的可选字符串值。
仅限 Windows。
</entry>
</row>
<row>
<entry>mtu</entry>
<entry>
接口的最大传输单位(MTU)的整数值。
仅限 Windows。
</entry>
</row>
<row>
<entry>unicast</entry>
<entry>
关联数组,见下面的单播属性。
</entry>
</row>
<row>
<entry>up</entry>
<entry>
接口的布尔状态(开/关)。
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
<table>
<title>单播属性</title>
<tgroup cols="2">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>flags</entry>
<entry>
整数值。
</entry>
</row>
<row>
<entry>family</entry>
<entry>
整数值。
</entry>
</row>
<row>
<entry>address</entry>
<entry>
IPv4 或 IPv6 中的地址的字符串值。
</entry>
</row>
<row>
<entry>netmask</entry>
<entry>
IPv4 或 IPv6 中的网络掩码的字符串值。
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<para>
在获取接口信息失败时会抛出 <constant>E_WARNING</constant>。
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->