| 1 |
# Arabic translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# زايد السعيدي <[email protected]>, 2026. |
| 5 |
|
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 10 |
"PO-Revision-Date: 2026-06-06 08:57+0400\n" |
| 11 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 12 |
"Language-Team: Arabic <[email protected]>\n" |
| 13 |
"Language: ar\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&" |
| 18 |
" n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 19 |
"X-Generator: Lokalize 23.08.5\n" |
| 20 |
|
| 21 |
#. type: TH |
| 22 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 23 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 24 |
#, no-wrap |
| 25 |
msgid "getaddrinfo" |
| 26 |
msgstr "getaddrinfo" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 30 |
#: opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "2026-02-08" |
| 33 |
msgstr "8 فبراير 2026" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, no-wrap |
| 38 |
msgid "Linux man-pages 6.18" |
| 39 |
msgstr "صفحات دليل لينكس 6.18" |
| 40 |
|
| 41 |
#. type: SH |
| 42 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 43 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "NAME" |
| 46 |
msgstr "الاسم" |
| 47 |
|
| 48 |
#. type: Plain text |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
msgid "" |
| 52 |
"getaddrinfo, freeaddrinfo, gai_strerror - network address and service " |
| 53 |
"translation" |
| 54 |
msgstr "getaddrinfo, freeaddrinfo, gai_strerror - ترجمة عنوان الشبكة والخدمة" |
| 55 |
|
| 56 |
#. type: SH |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
#, no-wrap |
| 60 |
msgid "LIBRARY" |
| 61 |
msgstr "المكتبة" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 65 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 67 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "SYNOPSIS" |
| 74 |
msgstr "موجز" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 78 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
#, no-wrap |
| 80 |
msgid "" |
| 81 |
"B<#include E<lt>sys/types.hE<gt>>\n" |
| 82 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 83 |
"B<#include E<lt>netdb.hE<gt>>\n" |
| 84 |
msgstr "" |
| 85 |
"B<#include E<lt>sys/types.hE<gt>>\n" |
| 86 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 87 |
"B<#include E<lt>netdb.hE<gt>>\n" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
#, no-wrap |
| 93 |
msgid "" |
| 94 |
"B<int getaddrinfo(const char *restrict >I<node>B<,>\n" |
| 95 |
"B< const char *restrict >I<service>B<,>\n" |
| 96 |
"B< const struct addrinfo *restrict >I<hints>B<,>\n" |
| 97 |
"B< struct addrinfo **restrict >I<res>B<);>\n" |
| 98 |
msgstr "" |
| 99 |
"B<int getaddrinfo(const char *restrict >I<node>B<,>\n" |
| 100 |
"B< const char *restrict >I<service>B<,>\n" |
| 101 |
"B< const struct addrinfo *restrict >I<hints>B<,>\n" |
| 102 |
"B< struct addrinfo **restrict >I<res>B<);>\n" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "B<void freeaddrinfo(struct addrinfo *>I<res>B<);>\n" |
| 109 |
msgstr "B<void freeaddrinfo(struct addrinfo *>I<res>B<);>\n" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, no-wrap |
| 115 |
msgid "B<const char *gai_strerror(int >I<errcode>B<);>\n" |
| 116 |
msgstr "B<const char *gai_strerror(int >I<errcode>B<);>\n" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 123 |
msgstr "" |
| 124 |
"متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
msgid "B<getaddrinfo>(), B<freeaddrinfo>(), B<gai_strerror>():" |
| 130 |
msgstr "B<getaddrinfo>(), B<freeaddrinfo>(), B<gai_strerror>():" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 134 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
#, no-wrap |
| 136 |
msgid "" |
| 137 |
" Since glibc 2.22:\n" |
| 138 |
" _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 139 |
" glibc 2.21 and earlier:\n" |
| 140 |
" _POSIX_C_SOURCE\n" |
| 141 |
msgstr "" |
| 142 |
" منذ glibc 2.22:\n" |
| 143 |
" _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 144 |
" glibc 2.21 وما قبله:\n" |
| 145 |
" _POSIX_C_SOURCE\n" |
| 146 |
|
| 147 |
#. type: SH |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
#, no-wrap |
| 151 |
msgid "DESCRIPTION" |
| 152 |
msgstr "الوصف" |
| 153 |
|
| 154 |
#. .BR getipnodebyname (3), |
| 155 |
#. .BR getipnodebyaddr (3), |
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"Given I<node> and I<service>, which identify an Internet host and a service, " |
| 161 |
"B<getaddrinfo>() returns one or more I<addrinfo> structures, each of which " |
| 162 |
"contains an Internet address that can be specified in a call to B<bind>(2) " |
| 163 |
"or B<connect>(2). The B<getaddrinfo>() function combines the functionality " |
| 164 |
"provided by the B<gethostbyname>(3) and B<getservbyname>(3) functions into " |
| 165 |
"a single interface, but unlike the latter functions, B<getaddrinfo>() is " |
| 166 |
"reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies." |
| 167 |
msgstr "" |
| 168 |
"بمعطى I<node> و I<service>، اللذان يُعرِّفان مضيف إنترنت وخدمة، تُرجع " |
| 169 |
"B<getaddrinfo>() بنية I<addrinfo> واحدة أو أكثر، كل منها يحتوي على عنوان " |
| 170 |
"إنترنت يمكن تحديده في استدعاء لـ B<bind>(2) أو B<connect>(2). تدمج دالة " |
| 171 |
"B<getaddrinfo>() الوظائف التي توفرها دالتا B<gethostbyname>(3) و " |
| 172 |
"B<getservbyname>(3) في واجهة واحدة، ولكن على عكس الدالتين الأخيرتين، فإن " |
| 173 |
"B<getaddrinfo>() قابلة لإعادة الدخول وتسمح للبرامج بإزالة التبعيات بين IPv4 " |
| 174 |
"و IPv6." |
| 175 |
|
| 176 |
#. type: Plain text |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
msgid "" |
| 180 |
"The I<addrinfo> structure used by B<getaddrinfo>() contains the following " |
| 181 |
"fields:" |
| 182 |
msgstr "" |
| 183 |
"تحتوي بنية I<addrinfo> المستخدمة بواسطة B<getaddrinfo>() على الحقول التالية:" |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
#, no-wrap |
| 189 |
msgid "" |
| 190 |
"struct addrinfo {\n" |
| 191 |
" int ai_flags;\n" |
| 192 |
" int ai_family;\n" |
| 193 |
" int ai_socktype;\n" |
| 194 |
" int ai_protocol;\n" |
| 195 |
" socklen_t ai_addrlen;\n" |
| 196 |
" struct sockaddr *ai_addr;\n" |
| 197 |
" char *ai_canonname;\n" |
| 198 |
" struct addrinfo *ai_next;\n" |
| 199 |
"};\n" |
| 200 |
msgstr "" |
| 201 |
"struct addrinfo {\n" |
| 202 |
" int ai_flags;\n" |
| 203 |
" int ai_family;\n" |
| 204 |
" int ai_socktype;\n" |
| 205 |
" int ai_protocol;\n" |
| 206 |
" socklen_t ai_addrlen;\n" |
| 207 |
" struct sockaddr *ai_addr;\n" |
| 208 |
" char *ai_canonname;\n" |
| 209 |
" struct addrinfo *ai_next;\n" |
| 210 |
"};\n" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "" |
| 216 |
"The I<hints> argument points to an I<addrinfo> structure that specifies " |
| 217 |
"criteria for selecting the socket address structures returned in the list " |
| 218 |
"pointed to by I<res>. If I<hints> is not NULL it points to an I<addrinfo> " |
| 219 |
"structure whose I<ai_family>, I<ai_socktype>, and I<ai_protocol> specify " |
| 220 |
"criteria that limit the set of socket addresses returned by " |
| 221 |
"B<getaddrinfo>(), as follows:" |
| 222 |
msgstr "" |
| 223 |
"يشير معامل I<hints> إلى بنية I<addrinfo> تحدد معايير اختيار بنى عنوان المقبس " |
| 224 |
"المُعادة في القائمة المشار إليها بواسطة I<res>. إذا لم يكن I<hints> NULL، " |
| 225 |
"فإنه يشير إلى بنية I<addrinfo> تحدد حقولها I<ai_family> و I<ai_socktype> و " |
| 226 |
"I<ai_protocol> معايير تحد من مجموعة عناوين المقبس التي تُرجعها " |
| 227 |
"B<getaddrinfo>()، كما يلي:" |
| 228 |
|
| 229 |
#. type: TP |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, no-wrap |
| 233 |
msgid "I<ai_family>" |
| 234 |
msgstr "I<ai_family>" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "" |
| 240 |
"This field specifies the desired address family for the returned addresses. " |
| 241 |
"Valid values for this field include B<AF_INET> and B<AF_INET6>. The value " |
| 242 |
"B<AF_UNSPEC> indicates that B<getaddrinfo>() should return socket addresses " |
| 243 |
"for any address family (either IPv4 or IPv6, for example) that can be used " |
| 244 |
"with I<node> and I<service>." |
| 245 |
msgstr "" |
| 246 |
"يحدد هذا الحقل عائلة العنوان المطلوبة للعناوين المُعادة. تتضمن القيم الصالحة " |
| 247 |
"لهذا الحقل B<AF_INET> و B<AF_UNSPEC>. تشير القيمة B<AF_UNSPEC> إلى أن " |
| 248 |
"B<getaddrinfo>() يجب أن تُعيد عناوين مقبس لأي عائلة عنوان (مثل IPv4 أو IPv6) " |
| 249 |
"يمكن استخدامها مع I<node> و I<service>." |
| 250 |
|
| 251 |
#. type: TP |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
#, no-wrap |
| 255 |
msgid "I<ai_socktype>" |
| 256 |
msgstr "I<ai_socktype>" |
| 257 |
|
| 258 |
#. type: Plain text |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
msgid "" |
| 262 |
"This field specifies the preferred socket type, for example B<SOCK_STREAM> " |
| 263 |
"or B<SOCK_DGRAM>. Specifying 0 in this field indicates that socket " |
| 264 |
"addresses of any type can be returned by B<getaddrinfo>()." |
| 265 |
msgstr "" |
| 266 |
"يحدد هذا الحقل نوع المقبس المفضل، على سبيل المثال B<SOCK_STREAM> أو " |
| 267 |
"B<SOCK_DGRAM>. يشير تحديد 0 في هذا الحقل إلى أن عناوين مقبس من أي نوع يمكن " |
| 268 |
"أن تُعاد بواسطة B<getaddrinfo>()." |
| 269 |
|
| 270 |
#. type: TP |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "I<ai_protocol>" |
| 275 |
msgstr "I<ai_protocol>" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
msgid "" |
| 281 |
"This field specifies the protocol for the returned socket addresses. " |
| 282 |
"Specifying 0 in this field indicates that socket addresses with any protocol " |
| 283 |
"can be returned by B<getaddrinfo>()." |
| 284 |
msgstr "" |
| 285 |
"يحدد هذا الحقل البروتوكول لعناوين المقبس المُعادة. يشير تحديد 0 في هذا الحقل " |
| 286 |
"إلى أن عناوين مقبس مع أي بروتوكول يمكن أن تُعاد بواسطة B<getaddrinfo>()." |
| 287 |
|
| 288 |
#. type: TP |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "I<ai_flags>" |
| 293 |
msgstr "I<ai_flags>" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "" |
| 299 |
"This field specifies additional options, described below. Multiple flags " |
| 300 |
"are specified by bitwise OR-ing them together." |
| 301 |
msgstr "" |
| 302 |
"يحدد هذا الحقل خيارات إضافية، موصوفة أدناه. تُحدد أعلام متعددة بإجراء عملية " |
| 303 |
"OR منطقية عليها معًا." |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
msgid "" |
| 309 |
"All the other fields in the structure pointed to by I<hints> must contain " |
| 310 |
"either 0 or a null pointer, as appropriate." |
| 311 |
msgstr "" |
| 312 |
"يجب أن تحتوي جميع الحقول الأخرى في البنية المشار إليها بواسطة I<hints> إما " |
| 313 |
"على 0 أو مؤشر فارغ، حسب الاقتضاء." |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"Specifying I<hints> as NULL is equivalent to setting I<ai_socktype> and " |
| 320 |
"I<ai_protocol> to 0; I<ai_family> to B<AF_UNSPEC>; and I<ai_flags> to " |
| 321 |
"B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)>. (POSIX specifies different defaults " |
| 322 |
"for I<ai_flags>; see NOTES.) I<node> specifies either a numerical network " |
| 323 |
"address (for IPv4, numbers-and-dots notation as supported by " |
| 324 |
"B<inet_aton>(3); for IPv6, hexadecimal string format as supported by " |
| 325 |
"B<inet_pton>(3)), or a network hostname, whose network addresses are looked " |
| 326 |
"up and resolved. If I<hints.ai_flags> contains the B<AI_NUMERICHOST> flag, " |
| 327 |
"then I<node> must be a numerical network address. The B<AI_NUMERICHOST> " |
| 328 |
"flag suppresses any potentially lengthy network host address lookups." |
| 329 |
msgstr "" |
| 330 |
"تحديد I<hints> كـ NULL يعادل ضبط I<ai_socktype> و I<ai_protocol> على 0؛ و " |
| 331 |
"I<ai_family> على B<AF_UNSPEC>؛ و I<ai_flags> على B<(AI_V4MAPPED\\ |\\ " |
| 332 |
"AI_ADDRCONFIG)>. (يحدد POSIX قيمًا مبدئية مختلفة لـ I<ai_flags>؛ انظر " |
| 333 |
"الملاحظات.) يحدد I<node> إما عنوان شبكة رقمي (لـ IPv4، ترميز الأرقام والنقاط " |
| 334 |
"كما تدعمه B<inet_aton>(3)؛ لـ IPv6، تنسيق سلسلة محارف سداسي عشري كما تدعمه " |
| 335 |
"B<inet_pton>(3))، أو اسم مضيف شبكة، تُبحث عناوين شبكته وتُحل. إذا احتوى " |
| 336 |
"I<hints.ai_flags> على العلم B<AI_NUMERICHOST>، فيجب أن يكون I<node> عنوان " |
| 337 |
"شبكة رقمي. يمنع العلم B<AI_NUMERICHOST> أي عمليات بحث عن عنوان مضيف شبكة قد " |
| 338 |
"تكون طويلة." |
| 339 |
|
| 340 |
#. type: Plain text |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
msgid "" |
| 344 |
"If the B<AI_PASSIVE> flag is specified in I<hints.ai_flags>, and I<node> is " |
| 345 |
"NULL, then the returned socket addresses will be suitable for B<bind>(2)ing " |
| 346 |
"a socket that will B<accept>(2) connections. The returned socket address " |
| 347 |
"will contain the \"wildcard address\" (B<INADDR_ANY> for IPv4 addresses, " |
| 348 |
"B<IN6ADDR_ANY_INIT> for IPv6 address). The wildcard address is used by " |
| 349 |
"applications (typically servers) that intend to accept connections on any " |
| 350 |
"of the host's network addresses. If I<node> is not NULL, then the " |
| 351 |
"B<AI_PASSIVE> flag is ignored." |
| 352 |
msgstr "" |
| 353 |
"إذا حُدد العلم B<AI_PASSIVE> في I<hints.ai_flags>، وكان I<node> NULL، فإن " |
| 354 |
"عناوين المقبس المُعادة ستكون مناسبة لـ B<bind>(2) مقبس سيقبل B<accept>(2) " |
| 355 |
"اتصالات. سيحتوي عنوان المقبس المُعاد على \"عنوان البدل\" (B<INADDR_ANY> " |
| 356 |
"لعناوين IPv4، B<IN6ADDR_ANY_INIT> لعنوان IPv6). يُستخدم عنوان البدل بواسطة " |
| 357 |
"التطبيقات (عادة الخوادم) التي تنوي قبول اتصالات على أي من عناوين شبكة " |
| 358 |
"المضيف. إذا لم يكن I<node> NULL، فإن العلم B<AI_PASSIVE> يُتجاهل." |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "" |
| 364 |
"If the B<AI_PASSIVE> flag is not set in I<hints.ai_flags>, then the returned " |
| 365 |
"socket addresses will be suitable for use with B<connect>(2), B<sendto>(2), " |
| 366 |
"or B<sendmsg>(2). If I<node> is NULL, then the network address will be set " |
| 367 |
"to the loopback interface address (B<INADDR_LOOPBACK> for IPv4 addresses, " |
| 368 |
"B<IN6ADDR_LOOPBACK_INIT> for IPv6 address); this is used by applications " |
| 369 |
"that intend to communicate with peers running on the same host." |
| 370 |
msgstr "" |
| 371 |
"إذا لم يُضبط العلم B<AI_PASSIVE> في I<hints.ai_flags>، فإن عناوين المقابس " |
| 372 |
"المُعادة ستكون مناسبة للاستخدام مع B<connect>(2) أو B<sendto>(2) أو " |
| 373 |
"B<sendmsg>(2). إذا كان I<node> NULL، فسيُضبط عنوان الشبكة على عنوان واجهة " |
| 374 |
"الاسترجاع (B<INADDR_LOOPBACK> لعناوين IPv4، B<IN6ADDR_LOOPBACK_INIT> لعناوين " |
| 375 |
"IPv6)؛ يُستخدم هذا من قبل التطبيقات التي تنوي التواصل مع الأقران العاملين على " |
| 376 |
"نفس المضيف." |
| 377 |
|
| 378 |
#. type: Plain text |
| 379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 380 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 381 |
msgid "" |
| 382 |
"I<service> sets the port in each returned address structure. If this " |
| 383 |
"argument is a service name (see B<services>(5)), it is translated to the " |
| 384 |
"corresponding port number. This argument can also be specified as a decimal " |
| 385 |
"number, which is simply converted to binary. If I<service> is NULL, then " |
| 386 |
"the port number of the returned socket addresses will be left " |
| 387 |
"uninitialized. If B<AI_NUMERICSERV> is specified in I<hints.ai_flags> and " |
| 388 |
"I<service> is not NULL, then I<service> must point to a string containing a " |
| 389 |
"numeric port number. This flag is used to inhibit the invocation of a name " |
| 390 |
"resolution service in cases where it is known not to be required." |
| 391 |
msgstr "" |
| 392 |
"يُضبط I<service> المنفذ في كل بنية عنوان مُعادة. إذا كانت هذه الوسيطة اسم" |
| 393 |
" خدمة " |
| 394 |
"(انظر B<services>(5))، فتُترجم إلى رقم المنفذ المقابل. يمكن أيضًا تحديد هذه " |
| 395 |
"الوسيطة كرقم عشري، يُحوّل ببساطة إلى ثنائي. إذا كان I<service> NULL، فسيُترك " |
| 396 |
"رقم منفذ عناوين المقابس المُعادة غير مهيأ. إذا حُدد B<AI_NUMERICSERV> في " |
| 397 |
"I<hints.ai_flags> وكان I<service> ليس NULL، فيجب أن يشير I<service> إلى " |
| 398 |
"سلسلة محارف تحتوي على رقم منفذ عددي. يُستخدم هذا العلم لمنع استدعاء خدمة " |
| 399 |
"تحليل الأسماء في الحالات التي يُعرف فيها أنها غير مطلوبة." |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "Either I<node> or I<service>, but not both, may be NULL." |
| 405 |
msgstr "قد يكون إما I<node> أو I<service>، وليس كلاهما، NULL." |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
msgid "" |
| 411 |
"The B<getaddrinfo>() function allocates and initializes a linked list of " |
| 412 |
"I<addrinfo> structures, one for each network address that matches I<node> " |
| 413 |
"and I<service>, subject to any restrictions imposed by I<hints>, and returns " |
| 414 |
"a pointer to the start of the list in I<res>. The items in the linked list " |
| 415 |
"are linked by the I<ai_next> field." |
| 416 |
msgstr "" |
| 417 |
"تخصص الدالة B<getaddrinfo>() وتهيئ قائمة مرتبطة من بنى I<addrinfo>، واحدة " |
| 418 |
"لكل عنوان شبكة يطابق I<node> و I<service>، مع مراعاة أي قيود يفرضها " |
| 419 |
"I<hints>، وتُعيد مؤشرًا إلى بداية القائمة في I<res>. تُربط العناصر في القائمة " |
| 420 |
"المرتبطة بواسطة الحقل I<ai_next>." |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"There are several reasons why the linked list may have more than one " |
| 427 |
"I<addrinfo> structure, including: the network host is multihomed, accessible " |
| 428 |
"over multiple protocols (e.g., both B<AF_INET> and B<AF_INET6>); or the same " |
| 429 |
"service is available from multiple socket types (one B<SOCK_STREAM> address " |
| 430 |
"and another B<SOCK_DGRAM> address, for example). Normally, the application " |
| 431 |
"should try using the addresses in the order in which they are returned. The " |
| 432 |
"sorting function used within B<getaddrinfo>() is defined in RFC\\ 3484; the " |
| 433 |
"order can be tweaked for a particular system by editing I</etc/gai.conf> " |
| 434 |
"(available since glibc 2.5)." |
| 435 |
msgstr "" |
| 436 |
"هناك عدة أسباب قد تجعل القائمة المرتبطة تحتوي على أكثر من بنية I<addrinfo>، " |
| 437 |
"منها: المضيف الشبكي متعدد الواجهات، يمكن الوصول إليه عبر بروتوكولات متعددة " |
| 438 |
"(مثل B<AF_INET> و B<AF_INET6>)؛ أو أن نفس الخدمة متاحة من أنواع مقابس متعددة " |
| 439 |
"(عنوان B<SOCK_STREAM> وآخر B<SOCK_DGRAM> مثلاً). عادةً، يجب على التطبيق" |
| 440 |
" محاولة " |
| 441 |
"استخدام العناوين بالترتيب الذي أُعيدت به. دالة الفرز المستخدمة داخل " |
| 442 |
"B<getaddrinfo>() مُعرّفة في RFC\\ 3484؛ يمكن تعديل الترتيب لنظام معين بتحرير " |
| 443 |
"I</etc/gai.conf> (متاح منذ glibc 2.5)." |
| 444 |
|
| 445 |
#. Prior to glibc 2.3.4, the ai_canonname of each addrinfo |
| 446 |
#. structure was set pointing to the canonical name; that was |
| 447 |
#. more than POSIX.1-2001 specified, or other implementations provided. |
| 448 |
#. MTK, Aug 05 |
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
msgid "" |
| 453 |
"If I<hints.ai_flags> includes the B<AI_CANONNAME> flag, then the " |
| 454 |
"I<ai_canonname> field of the first of the I<addrinfo> structures in the " |
| 455 |
"returned list is set to point to the official name of the host." |
| 456 |
msgstr "" |
| 457 |
"إذا تضمن I<hints.ai_flags> العلم B<AI_CANONNAME>، فسيُضبط الحقل " |
| 458 |
"I<ai_canonname> لأول بنية I<addrinfo> في القائمة المُعادة ليشير إلى الاسم " |
| 459 |
"الرسمي للمضيف." |
| 460 |
|
| 461 |
#. type: Plain text |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
msgid "" |
| 465 |
"The remaining fields of each returned I<addrinfo> structure are initialized " |
| 466 |
"as follows:" |
| 467 |
msgstr "تُهيأ الحقول المتبقية لكل بنية I<addrinfo> مُعادة كما يلي:" |
| 468 |
|
| 469 |
#. type: IP |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
#, no-wrap |
| 473 |
msgid "\\[bu]" |
| 474 |
msgstr "\\[bu]" |
| 475 |
|
| 476 |
#. type: Plain text |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
msgid "" |
| 480 |
"The I<ai_family>, I<ai_socktype>, and I<ai_protocol> fields return the " |
| 481 |
"socket creation parameters (i.e., these fields have the same meaning as the " |
| 482 |
"corresponding arguments of B<socket>(2)). For example, I<ai_family> might " |
| 483 |
"return B<AF_INET> or B<AF_INET6>; I<ai_socktype> might return B<SOCK_DGRAM> " |
| 484 |
"or B<SOCK_STREAM>; and I<ai_protocol> returns the protocol for the socket." |
| 485 |
msgstr "" |
| 486 |
"تُعيد الحقول I<ai_family> و I<ai_socktype> و I<ai_protocol> معاملات إنشاء " |
| 487 |
"المقبس (أي أن هذه الحقول لها نفس معنى الوسائط المقابلة لـ B<socket>(2)). على " |
| 488 |
"سبيل المثال، قد يُعيد I<ai_family> B<AF_INET> أو B<AF_INET6>؛ قد يُعيد " |
| 489 |
"I<ai_socktype> B<SOCK_DGRAM> أو B<SOCK_STREAM>؛ ويُعيد I<ai_protocol> " |
| 490 |
"البروتوكول للمقبس." |
| 491 |
|
| 492 |
#. type: Plain text |
| 493 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 494 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 495 |
msgid "" |
| 496 |
"A pointer to the socket address is placed in the I<ai_addr> field, and the " |
| 497 |
"size of the socket address, in bytes, is placed in the I<ai_addrlen> field." |
| 498 |
msgstr "" |
| 499 |
"يُوضع مؤشر إلى عنوان المقبس في الحقل I<ai_addr>، ويُوضع حجم عنوان المقبس، " |
| 500 |
"بالبايت، في الحقل I<ai_addrlen>." |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
msgid "" |
| 506 |
"If I<hints.ai_flags> includes the B<AI_ADDRCONFIG> flag, then IPv4 addresses " |
| 507 |
"are returned in the list pointed to by I<res> only if the local system has " |
| 508 |
"at least one IPv4 address configured, and IPv6 addresses are returned only " |
| 509 |
"if the local system has at least one IPv6 address configured. The loopback " |
| 510 |
"address is not considered for this case as valid as a configured address. " |
| 511 |
"This flag is useful on, for example, IPv4-only systems, to ensure that " |
| 512 |
"B<getaddrinfo>() does not return IPv6 socket addresses that would always " |
| 513 |
"fail in B<connect>(2) or B<bind>(2)." |
| 514 |
msgstr "" |
| 515 |
"إذا تضمن I<hints.ai_flags> العلم B<AI_ADDRCONFIG>، فتُعاد عناوين IPv4 في " |
| 516 |
"القائمة المشار إليها بـ I<res> فقط إذا كان النظام المحلي يحتوي على عنوان " |
| 517 |
"IPv4 واحد على الأقل مُهيأ، وتُعاد عناوين IPv6 فقط إذا كان النظام المحلي يحتوي " |
| 518 |
"على عنوان IPv6 واحد على الأقل مُهيأ. لا يُعتبر عنوان الاسترجاع صالحًا كعنوان " |
| 519 |
"مُهيأ في هذه الحالة. هذا العلم مفيد، على سبيل المثال، في الأنظمة التي تعمل بـ " |
| 520 |
"IPv4 فقط، لضمان أن B<getaddrinfo>() لا تُعيد عناوين مقابس IPv6 التي ستفشل " |
| 521 |
"دائمًا في B<connect>(2) أو B<bind>(2)." |
| 522 |
|
| 523 |
#. type: Plain text |
| 524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 525 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 526 |
msgid "" |
| 527 |
"If I<hints.ai_flags> specifies the B<AI_V4MAPPED> flag, and I<hints." |
| 528 |
"ai_family> was specified as B<AF_INET6>, and no matching IPv6 addresses " |
| 529 |
"could be found, then return IPv4-mapped IPv6 addresses in the list pointed " |
| 530 |
"to by I<res>. If both B<AI_V4MAPPED> and B<AI_ALL> are specified in I<hints." |
| 531 |
"ai_flags>, then return both IPv6 and IPv4-mapped IPv6 addresses in the list " |
| 532 |
"pointed to by I<res>. B<AI_ALL> is ignored if B<AI_V4MAPPED> is not also " |
| 533 |
"specified." |
| 534 |
msgstr "" |
| 535 |
"إذا حدد I<hints.ai_flags> العلم B<AI_V4MAPPED>، وحُدد I<hints.ai_family> كـ " |
| 536 |
"B<AF_INET6>، ولم يُعثر على عناوين IPv6 مطابقة، فتُعاد عناوين IPv6 المعينة من " |
| 537 |
"IPv4 في القائمة المشار إليها بـ I<res>. إذا حُدد كل من B<AI_V4MAPPED> و " |
| 538 |
"B<AI_ALL> في I<hints.ai_flags>، فتُعاد عناوين IPv6 وعناوين IPv6 المعينة من " |
| 539 |
"IPv4 في القائمة المشار إليها بـ I<res>. يُتجاهل B<AI_ALL> إذا لم يُحدد " |
| 540 |
"B<AI_V4MAPPED> أيضًا." |
| 541 |
|
| 542 |
#. type: Plain text |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
msgid "" |
| 546 |
"The B<freeaddrinfo>() function frees the memory that was allocated for the " |
| 547 |
"dynamically allocated linked list I<res>." |
| 548 |
msgstr "" |
| 549 |
"تحرر الدالة B<freeaddrinfo>() الذاكرة التي خُصصت للقائمة المرتبطة المخصصة " |
| 550 |
"ديناميكيًا I<res>." |
| 551 |
|
| 552 |
#. type: SS |
| 553 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 554 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 555 |
#, no-wrap |
| 556 |
msgid "Extensions to getaddrinfo() for Internationalized Domain Names" |
| 557 |
msgstr "إضافات إلى getaddrinfo() لأسماء النطاقات المعولمة" |
| 558 |
|
| 559 |
#. type: Plain text |
| 560 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 561 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 562 |
msgid "" |
| 563 |
"Starting with glibc 2.3.4, B<getaddrinfo>() has been extended to " |
| 564 |
"selectively allow the incoming and outgoing hostnames to be transparently " |
| 565 |
"converted to and from the Internationalized Domain Name (IDN) format (see " |
| 566 |
"RFC 3490, I<Internationalizing Domain Names in Applications (IDNA)>). Four " |
| 567 |
"new flags are defined:" |
| 568 |
msgstr "" |
| 569 |
"بدءًا من glibc 2.3.4، وُسعت B<getaddrinfo>() للسماح بشكل انتقائي بتحويل أسماء " |
| 570 |
"المضيفات الواردة والصادرة بشفافية من وإلى تنسيق اسم النطاق المعولم (IDN) " |
| 571 |
"(انظر RFC 3490، I<تعميم أسماء النطاقات في التطبيقات (IDNA)>). عُرفت أربعة " |
| 572 |
"أعلام جديدة:" |
| 573 |
|
| 574 |
#. type: TP |
| 575 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 576 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 577 |
#, no-wrap |
| 578 |
msgid "B<AI_IDN>" |
| 579 |
msgstr "B<AI_IDN>" |
| 580 |
|
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
msgid "" |
| 585 |
"If this flag is specified, then the node name given in I<node> is converted " |
| 586 |
"to IDN format if necessary. The source encoding is that of the current " |
| 587 |
"locale." |
| 588 |
msgstr "" |
| 589 |
"إذا حُدد هذا العلم، فسيُحوّل اسم العقدة المُعطى في I<node> إلى تنسيق IDN إذا" |
| 590 |
" لزم " |
| 591 |
"الأمر. الترميز المصدر هو ترميز الإعدادات المحلية الحالية." |
| 592 |
|
| 593 |
#. Implementation Detail: |
| 594 |
#. To minimize effects on system performance the implementation might |
| 595 |
#. want to check whether the input string contains any non-ASCII |
| 596 |
#. characters. If there are none the IDN step can be skipped completely. |
| 597 |
#. On systems which allow not-ASCII safe encodings for a locale this |
| 598 |
#. might be a problem. |
| 599 |
#. type: Plain text |
| 600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 601 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 602 |
msgid "" |
| 603 |
"If the input name contains non-ASCII characters, then the IDN encoding is " |
| 604 |
"used. Those parts of the node name (delimited by dots) that contain non-" |
| 605 |
"ASCII characters are encoded using ASCII Compatible Encoding (ACE) before " |
| 606 |
"being passed to the name resolution functions." |
| 607 |
msgstr "" |
| 608 |
"إذا احتوى اسم الإدخال على محارف غير ASCII، فسيُستخدم ترميز IDN. تُرمّز أجزاء " |
| 609 |
"اسم العقدة (المحددة بالنقاط) التي تحتوي على محارف غير ASCII باستخدام الترميز " |
| 610 |
"المتوافق مع ASCII (ACE) قبل تمريرها إلى دوال تحليل الأسماء." |
| 611 |
|
| 612 |
#. type: TP |
| 613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 614 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 615 |
#, no-wrap |
| 616 |
msgid "B<AI_CANONIDN>" |
| 617 |
msgstr "B<AI_CANONIDN>" |
| 618 |
|
| 619 |
#. type: Plain text |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
msgid "" |
| 623 |
"After a successful name lookup, and if the B<AI_CANONNAME> flag was " |
| 624 |
"specified, B<getaddrinfo>() will return the canonical name of the node " |
| 625 |
"corresponding to the I<addrinfo> structure value passed back. The return " |
| 626 |
"value is an exact copy of the value returned by the name resolution function." |
| 627 |
msgstr "" |
| 628 |
"بعد بحث ناجح عن الاسم، وإذا حُدد العلم B<AI_CANONNAME>، فستُعيد " |
| 629 |
"B<getaddrinfo>() الاسم القانوني للعقدة المقابلة لقيمة بنية I<addrinfo> " |
| 630 |
"المُعادة. القيمة المُعادة هي نسخة طبق الأصل من القيمة التي أُعيدت بواسطة دالة " |
| 631 |
"تحليل الأسماء." |
| 632 |
|
| 633 |
#. Implementation Detail: |
| 634 |
#. If no component of the returned name starts with xn\-\- the IDN |
| 635 |
#. step can be skipped, therefore avoiding unnecessary slowdowns. |
| 636 |
#. type: Plain text |
| 637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 638 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 639 |
msgid "" |
| 640 |
"If the name is encoded using ACE, then it will contain the I<xn--> prefix " |
| 641 |
"for one or more components of the name. To convert these components into a " |
| 642 |
"readable form the B<AI_CANONIDN> flag can be passed in addition to " |
| 643 |
"B<AI_CANONNAME>. The resulting string is encoded using the current locale's " |
| 644 |
"encoding." |
| 645 |
msgstr "" |
| 646 |
"إذا كان الاسم مُرمّزًا باستخدام ACE، فسيحتوي على البادئة I<xn--> لمكون أو" |
| 647 |
" أكثر " |
| 648 |
"من مكونات الاسم. لتحويل هذه المكونات إلى شكل قابل للقراءة، يمكن تمرير العلم " |
| 649 |
"B<AI_CANONIDN> بالإضافة إلى B<AI_CANONNAME>. السلسلة الناتجة مُرمّزة باستخدام " |
| 650 |
"ترميز الإعدادات المحلية الحالية." |
| 651 |
|
| 652 |
#. type: TP |
| 653 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 654 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 655 |
#, no-wrap |
| 656 |
msgid "B<AI_IDN_ALLOW_UNASSIGNED>" |
| 657 |
msgstr "B<AI_IDN_ALLOW_UNASSIGNED>" |
| 658 |
|
| 659 |
#. type: TQ |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
#, no-wrap |
| 663 |
msgid "B<AI_IDN_USE_STD3_ASCII_RULES>" |
| 664 |
msgstr "B<AI_IDN_USE_STD3_ASCII_RULES>" |
| 665 |
|
| 666 |
#. type: Plain text |
| 667 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 668 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 669 |
msgid "" |
| 670 |
"Setting these flags will enable the IDNA_ALLOW_UNASSIGNED (allow unassigned " |
| 671 |
"Unicode code points) and IDNA_USE_STD3_ASCII_RULES (check output to make " |
| 672 |
"sure it is a STD3 conforming hostname) flags respectively to be used in the " |
| 673 |
"IDNA handling." |
| 674 |
msgstr "" |
| 675 |
"سيؤدي ضبط هذه الأعلام إلى تفعيل علم IDNA_ALLOW_UNASSIGNED (السماح بنقاط كود " |
| 676 |
"يونيكود غير المعينة) وعلم IDNA_USE_STD3_ASCII_RULES (فحص المخرجات للتأكد من " |
| 677 |
"أنها اسم مضيف متوافق مع STD3) على التوالي، لاستخدامهما في معالجة IDNA." |
| 678 |
|
| 679 |
#. type: SH |
| 680 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 681 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 682 |
#, no-wrap |
| 683 |
msgid "RETURN VALUE" |
| 684 |
msgstr "قيمة الإرجاع" |
| 685 |
|
| 686 |
#. FIXME glibc defines the following additional errors, some which |
| 687 |
#. can probably be returned by getaddrinfo(); they need to |
| 688 |
#. be documented. |
| 689 |
#. #ifdef __USE_GNU |
| 690 |
#. #define EAI_INPROGRESS -100 /* Processing request in progress. */ |
| 691 |
#. #define EAI_CANCELED -101 /* Request canceled. */ |
| 692 |
#. #define EAI_NOTCANCELED -102 /* Request not canceled. */ |
| 693 |
#. #define EAI_ALLDONE -103 /* All requests done. */ |
| 694 |
#. #define EAI_INTR -104 /* Interrupted by a signal. */ |
| 695 |
#. #define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ |
| 696 |
#. #endif |
| 697 |
#. type: Plain text |
| 698 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 699 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 700 |
msgid "" |
| 701 |
"B<getaddrinfo>() returns 0 if it succeeds, or one of the following nonzero " |
| 702 |
"error codes:" |
| 703 |
msgstr "" |
| 704 |
"تُرجع الدالة B<getaddrinfo>() القيمة 0 عند النجاح، أو أحد رموز الخطأ غير " |
| 705 |
"الصفرية التالية:" |
| 706 |
|
| 707 |
#. type: TP |
| 708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 709 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 710 |
#, no-wrap |
| 711 |
msgid "B<EAI_ADDRFAMILY>" |
| 712 |
msgstr "B<EAI_ADDRFAMILY>" |
| 713 |
|
| 714 |
#. Not in SUSv3 |
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
msgid "" |
| 719 |
"The specified network host does not have any network addresses in the " |
| 720 |
"requested address family." |
| 721 |
msgstr "" |
| 722 |
"المُضيف الشبكي المُحدد لا يمتلك أي عناوين شبكية في عائلة العناوين المطلوبة." |
| 723 |
|
| 724 |
#. type: TP |
| 725 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 726 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 727 |
#, no-wrap |
| 728 |
msgid "B<EAI_AGAIN>" |
| 729 |
msgstr "B<EAI_AGAIN>" |
| 730 |
|
| 731 |
#. type: Plain text |
| 732 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 733 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 734 |
msgid "" |
| 735 |
"The name server returned a temporary failure indication. Try again later." |
| 736 |
msgstr "أرجع خادم الأسماء إشارة فشل مؤقتة. حاول مجددًا لاحقًا." |
| 737 |
|
| 738 |
#. type: TP |
| 739 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 740 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 741 |
#, no-wrap |
| 742 |
msgid "B<EAI_BADFLAGS>" |
| 743 |
msgstr "B<EAI_BADFLAGS>" |
| 744 |
|
| 745 |
#. type: Plain text |
| 746 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 747 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 748 |
msgid "" |
| 749 |
"I<hints.ai_flags> contains invalid flags; or, I<hints.ai_flags> included " |
| 750 |
"B<AI_CANONNAME> and I<node> was NULL." |
| 751 |
msgstr "" |
| 752 |
"يحتوي I<hints.ai_flags> على أعلام غير صالحة؛ أو تضمن I<hints.ai_flags> العلم " |
| 753 |
"B<AI_CANONNAME> وكان I<node> فارغًا." |
| 754 |
|
| 755 |
#. type: TP |
| 756 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 757 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 758 |
#, no-wrap |
| 759 |
msgid "B<EAI_FAIL>" |
| 760 |
msgstr "B<EAI_FAIL>" |
| 761 |
|
| 762 |
#. type: Plain text |
| 763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 764 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 765 |
msgid "The name server returned a permanent failure indication." |
| 766 |
msgstr "أرجع خادم الأسماء إشارة فشل دائمة." |
| 767 |
|
| 768 |
#. type: TP |
| 769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 770 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 771 |
#, no-wrap |
| 772 |
msgid "B<EAI_FAMILY>" |
| 773 |
msgstr "B<EAI_FAMILY>" |
| 774 |
|
| 775 |
#. type: Plain text |
| 776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 777 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 778 |
msgid "The requested address family is not supported." |
| 779 |
msgstr "عائلة العناوين المطلوبة غير مدعومة." |
| 780 |
|
| 781 |
#. type: TP |
| 782 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 783 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 784 |
#, no-wrap |
| 785 |
msgid "B<EAI_MEMORY>" |
| 786 |
msgstr "B<EAI_MEMORY>" |
| 787 |
|
| 788 |
#. type: Plain text |
| 789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 790 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 791 |
msgid "Out of memory." |
| 792 |
msgstr "نفدت الذاكرة." |
| 793 |
|
| 794 |
#. type: TP |
| 795 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 796 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 797 |
#, no-wrap |
| 798 |
msgid "B<EAI_NODATA>" |
| 799 |
msgstr "B<EAI_NODATA>" |
| 800 |
|
| 801 |
#. Not in SUSv3 |
| 802 |
#. type: Plain text |
| 803 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 804 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 805 |
msgid "" |
| 806 |
"The specified network host exists, but does not have any network addresses " |
| 807 |
"defined." |
| 808 |
msgstr "المُضيف الشبكي المُحدد موجود، لكنه لا يمتلك أي عناوين شبكية مُعرّفة." |
| 809 |
|
| 810 |
#. type: TP |
| 811 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 812 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 813 |
#, no-wrap |
| 814 |
msgid "B<EAI_NONAME>" |
| 815 |
msgstr "B<EAI_NONAME>" |
| 816 |
|
| 817 |
#. type: Plain text |
| 818 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 819 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 820 |
msgid "" |
| 821 |
"The I<node> or I<service> is not known; or both I<node> and I<service> are " |
| 822 |
"NULL; or B<AI_NUMERICSERV> was specified in I<hints.ai_flags> and I<service> " |
| 823 |
"was not a numeric port-number string." |
| 824 |
msgstr "" |
| 825 |
"I<node> أو I<service> غير معروف؛ أو كلاهما فارغ؛ أو تم تحديد " |
| 826 |
"B<AI_NUMERICSERV> في I<hints.ai_flags> ولم يكن I<service> سلسلة محارف رقمية " |
| 827 |
"لرقم المنفذ." |
| 828 |
|
| 829 |
#. type: TP |
| 830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 831 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 832 |
#, no-wrap |
| 833 |
msgid "B<EAI_SERVICE>" |
| 834 |
msgstr "B<EAI_SERVICE>" |
| 835 |
|
| 836 |
#. type: Plain text |
| 837 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 838 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 839 |
msgid "" |
| 840 |
"The requested service is not available for the requested socket type. It " |
| 841 |
"may be available through another socket type. For example, this error could " |
| 842 |
"occur if I<service> was \"shell\" (a service available only on stream " |
| 843 |
"sockets), and either I<hints.ai_protocol> was B<IPPROTO_UDP>, or I<hints." |
| 844 |
"ai_socktype> was B<SOCK_DGRAM>; or the error could occur if I<service> was " |
| 845 |
"not NULL, and I<hints.ai_socktype> was B<SOCK_RAW> (a socket type that does " |
| 846 |
"not support the concept of services)." |
| 847 |
msgstr "" |
| 848 |
"الخدمة المطلوبة غير متوفرة لنوع المقبس المطلوب. قد تكون متوفرة عبر نوع مقبس " |
| 849 |
"آخر. على سبيل المثال، قد يحدث هذا الخطأ إذا كانت I<service> هي " |
| 850 |
"\"shell\" (خدمة متوفرة فقط على مقابس التدفق)، وكان I<hints.ai_protocol> هو " |
| 851 |
"B<IPPROTO_UDP>، أو كان I<hints.ai_socktype> هو B<SOCK_DGRAM>؛ أو قد يحدث " |
| 852 |
"الخطأ إذا لم تكن I<service> فارغة، وكان I<hints.ai_socktype> هو B<SOCK_RAW> " |
| 853 |
"(نوع مقبس لا يدعم مفهوم الخدمات)." |
| 854 |
|
| 855 |
#. type: TP |
| 856 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 857 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 858 |
#, no-wrap |
| 859 |
msgid "B<EAI_SOCKTYPE>" |
| 860 |
msgstr "B<EAI_SOCKTYPE>" |
| 861 |
|
| 862 |
#. type: Plain text |
| 863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 864 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 865 |
msgid "" |
| 866 |
"The requested socket type is not supported. This could occur, for example, " |
| 867 |
"if I<hints.ai_socktype> and I<hints.ai_protocol> are inconsistent (e.g., " |
| 868 |
"B<SOCK_DGRAM> and B<IPPROTO_TCP>, respectively)." |
| 869 |
msgstr "" |
| 870 |
"نوع المقبس المطلوب غير مدعوم. قد يحدث هذا، على سبيل المثال، إذا كان I<hints." |
| 871 |
"ai_socktype> و I<hints.ai_protocol> غير متوافقين (مثل B<SOCK_DGRAM> و " |
| 872 |
"B<IPPROTO_TCP> على التوالي)." |
| 873 |
|
| 874 |
#. type: TP |
| 875 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 876 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 877 |
#, no-wrap |
| 878 |
msgid "B<EAI_SYSTEM>" |
| 879 |
msgstr "B<EAI_SYSTEM>" |
| 880 |
|
| 881 |
#. type: Plain text |
| 882 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 883 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 884 |
msgid "Other system error; I<errno> is set to indicate the error." |
| 885 |
msgstr "خطأ نظام آخر؛ يُضبط I<errno> للإشارة إلى الخطأ." |
| 886 |
|
| 887 |
#. type: Plain text |
| 888 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 889 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 890 |
msgid "" |
| 891 |
"The B<gai_strerror>() function translates these error codes to a human " |
| 892 |
"readable string, suitable for error reporting." |
| 893 |
msgstr "" |
| 894 |
"تُترجم الدالة B<gai_strerror>() رموز الخطأ هذه إلى سلسلة محارف قابلة للقراءة " |
| 895 |
"البشرية، مناسبة للإبلاغ عن الأخطاء." |
| 896 |
|
| 897 |
#. type: SH |
| 898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 899 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 900 |
#, no-wrap |
| 901 |
msgid "FILES" |
| 902 |
msgstr "الملفات" |
| 903 |
|
| 904 |
#. type: Plain text |
| 905 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 906 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 907 |
msgid "I</etc/gai.conf>" |
| 908 |
msgstr "I</etc/gai.conf>" |
| 909 |
|
| 910 |
#. type: SH |
| 911 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 912 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 913 |
#, no-wrap |
| 914 |
msgid "ATTRIBUTES" |
| 915 |
msgstr "السمات" |
| 916 |
|
| 917 |
#. type: Plain text |
| 918 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 919 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 920 |
msgid "" |
| 921 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 922 |
msgstr "" |
| 923 |
"للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)." |
| 924 |
|
| 925 |
#. type: tbl table |
| 926 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 927 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 928 |
#, no-wrap |
| 929 |
msgid "Interface" |
| 930 |
msgstr "الواجهة" |
| 931 |
|
| 932 |
#. type: tbl table |
| 933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 934 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 935 |
#, no-wrap |
| 936 |
msgid "Attribute" |
| 937 |
msgstr "السمة" |
| 938 |
|
| 939 |
#. type: tbl table |
| 940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 941 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 942 |
#, no-wrap |
| 943 |
msgid "Value" |
| 944 |
msgstr "القيمة" |
| 945 |
|
| 946 |
#. type: tbl table |
| 947 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 948 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 949 |
#, no-wrap |
| 950 |
msgid ".na\n" |
| 951 |
msgstr ".na\n" |
| 952 |
|
| 953 |
#. type: tbl table |
| 954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 955 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 956 |
#, no-wrap |
| 957 |
msgid ".nh\n" |
| 958 |
msgstr ".nh\n" |
| 959 |
|
| 960 |
#. type: TP |
| 961 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 962 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 963 |
#, no-wrap |
| 964 |
msgid "B<getaddrinfo>()" |
| 965 |
msgstr "B<getaddrinfo>()" |
| 966 |
|
| 967 |
#. type: tbl table |
| 968 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 969 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 970 |
#, no-wrap |
| 971 |
msgid "Thread safety" |
| 972 |
msgstr "سلامة الخيوط" |
| 973 |
|
| 974 |
#. type: tbl table |
| 975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 976 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 977 |
#, no-wrap |
| 978 |
msgid "MT-Safe env locale" |
| 979 |
msgstr "بيئة محلية آمنة لتعدد الخيوط (MT-Safe)" |
| 980 |
|
| 981 |
#. type: tbl table |
| 982 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 983 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 984 |
#, no-wrap |
| 985 |
msgid "" |
| 986 |
"B<freeaddrinfo>(),\n" |
| 987 |
"B<gai_strerror>()" |
| 988 |
msgstr "" |
| 989 |
"B<freeaddrinfo>(),\n" |
| 990 |
"B<gai_strerror>()" |
| 991 |
|
| 992 |
#. type: tbl table |
| 993 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 994 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 995 |
#, no-wrap |
| 996 |
msgid "MT-Safe" |
| 997 |
msgstr "MT-Safe" |
| 998 |
|
| 999 |
#. type: SH |
| 1000 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1001 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1002 |
#, no-wrap |
| 1003 |
msgid "VERSIONS" |
| 1004 |
msgstr "الإصدارات" |
| 1005 |
|
| 1006 |
#. POSIX.1-2001, POSIX.1-2008 |
| 1007 |
#. type: Plain text |
| 1008 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1009 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1010 |
#| msgid "" |
| 1011 |
#| "According to POSIX.1, specifying I<hints> as NULL should cause " |
| 1012 |
#| "I<ai_flags> to be assumed as 0. The GNU C library instead assumes a " |
| 1013 |
#| "value of B<(AI_V4MAPPED\\~|\\~AI_ADDRCONFIG)> for this case, since this " |
| 1014 |
#| "value is considered an improvement on the specification." |
| 1015 |
msgid "" |
| 1016 |
"According to POSIX.1, specifying I<hints> as NULL should cause I<ai_flags> " |
| 1017 |
"to be assumed as 0. The GNU C library instead assumes a value of " |
| 1018 |
"B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)> for this case, since this value is " |
| 1019 |
"considered an improvement on the specification." |
| 1020 |
msgstr "" |
| 1021 |
"وفقًا لـ POSIX.1، يجب أن يؤدي تحديد I<hints> كـ NULL إلى افتراض I<ai_flags> " |
| 1022 |
"كـ 0. تفترض مكتبة GNU C بدلاً من ذلك قيمة B<(AI_V4MAPPED\\ |" |
| 1023 |
"\\ AI_ADDRCONFIG)> لهذه الحالة، حيث تُعتبر هذه القيمة تحسينًا على المواصفات." |
| 1024 |
|
| 1025 |
#. type: SH |
| 1026 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1027 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1028 |
#, no-wrap |
| 1029 |
msgid "STANDARDS" |
| 1030 |
msgstr "المعايير" |
| 1031 |
|
| 1032 |
#. type: Plain text |
| 1033 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1034 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1035 |
msgid "POSIX.1-2008." |
| 1036 |
msgstr "POSIX.1-2008." |
| 1037 |
|
| 1038 |
#. type: Plain text |
| 1039 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1040 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1041 |
msgid "RFC\\ 2553." |
| 1042 |
msgstr "RFC\\ 2553." |
| 1043 |
|
| 1044 |
#. type: SH |
| 1045 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1046 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1047 |
#, no-wrap |
| 1048 |
msgid "HISTORY" |
| 1049 |
msgstr "التاريخ" |
| 1050 |
|
| 1051 |
#. type: Plain text |
| 1052 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1053 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1054 |
msgid "POSIX.1-2001." |
| 1055 |
msgstr "POSIX.1-2001." |
| 1056 |
|
| 1057 |
#. type: TP |
| 1058 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1059 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1060 |
#, no-wrap |
| 1061 |
msgid "B<AI_ADDRCONFIG>" |
| 1062 |
msgstr "B<AI_ADDRCONFIG>" |
| 1063 |
|
| 1064 |
#. type: TQ |
| 1065 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1066 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1067 |
#, no-wrap |
| 1068 |
msgid "B<AI_ALL>" |
| 1069 |
msgstr "B<AI_ALL>" |
| 1070 |
|
| 1071 |
#. type: TQ |
| 1072 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1073 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1074 |
#, no-wrap |
| 1075 |
msgid "B<AI_V4MAPPED>" |
| 1076 |
msgstr "B<AI_V4MAPPED>" |
| 1077 |
|
| 1078 |
#. type: Plain text |
| 1079 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1080 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1081 |
msgid "glibc 2.3.3." |
| 1082 |
msgstr "glibc 2.3.3." |
| 1083 |
|
| 1084 |
#. type: TP |
| 1085 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1086 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1087 |
#, no-wrap |
| 1088 |
msgid "B<AI_NUMERICSERV>" |
| 1089 |
msgstr "B<AI_NUMERICSERV>" |
| 1090 |
|
| 1091 |
#. type: Plain text |
| 1092 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1093 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1094 |
msgid "glibc 2.3.4." |
| 1095 |
msgstr "glibc 2.3.4." |
| 1096 |
|
| 1097 |
#. type: SH |
| 1098 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1099 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1100 |
#, no-wrap |
| 1101 |
msgid "NOTES" |
| 1102 |
msgstr "ملاحظات" |
| 1103 |
|
| 1104 |
#. type: Plain text |
| 1105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1107 |
msgid "" |
| 1108 |
"B<getaddrinfo>() supports the I<address>B<%>I<scope-id> notation for " |
| 1109 |
"specifying the IPv6 scope-ID." |
| 1110 |
msgstr "" |
| 1111 |
"تدعم B<getaddrinfo>() الترميز I<address>B<%>I<scope-id> لتحديد نطاق IPv6 " |
| 1112 |
"scope-ID." |
| 1113 |
|
| 1114 |
#. type: SH |
| 1115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1117 |
#, no-wrap |
| 1118 |
msgid "EXAMPLES" |
| 1119 |
msgstr "أمثلة" |
| 1120 |
|
| 1121 |
#. getnameinfo.3 refers to this example |
| 1122 |
#. socket.2 refers to this example |
| 1123 |
#. bind.2 refers to this example |
| 1124 |
#. connect.2 refers to this example |
| 1125 |
#. recvfrom.2 refers to this example |
| 1126 |
#. sendto.2 refers to this example |
| 1127 |
#. type: Plain text |
| 1128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1130 |
msgid "" |
| 1131 |
"The following programs demonstrate the use of B<getaddrinfo>(), " |
| 1132 |
"B<gai_strerror>(), B<freeaddrinfo>(), and B<getnameinfo>(3). The programs " |
| 1133 |
"are an echo server and client for UDP datagrams." |
| 1134 |
msgstr "" |
| 1135 |
"توضح البرامج التالية استخدام B<getaddrinfo>()، B<gai_strerror>()، " |
| 1136 |
"B<freeaddrinfo>()، و B<getnameinfo>(3). البرامج هي خادم وعميل صدى لبيانات " |
| 1137 |
"UDP." |
| 1138 |
|
| 1139 |
#. type: SS |
| 1140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1142 |
#, no-wrap |
| 1143 |
msgid "Server program" |
| 1144 |
msgstr "برنامج الخادم" |
| 1145 |
|
| 1146 |
#. type: Plain text |
| 1147 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1148 |
#: opensuse-tumbleweed |
| 1149 |
#, no-wrap |
| 1150 |
msgid "" |
| 1151 |
"#include E<lt>netdb.hE<gt>\n" |
| 1152 |
"#include E<lt>stdio.hE<gt>\n" |
| 1153 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1154 |
"#include E<lt>string.hE<gt>\n" |
| 1155 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1156 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1157 |
"#include E<lt>unistd.hE<gt>\n" |
| 1158 |
"\\&\n" |
| 1159 |
"#define BUF_SIZE 500\n" |
| 1160 |
"\\&\n" |
| 1161 |
"int\n" |
| 1162 |
"main(int argc, char *argv[])\n" |
| 1163 |
"{\n" |
| 1164 |
" int sfd, s;\n" |
| 1165 |
" char buf[BUF_SIZE];\n" |
| 1166 |
" ssize_t nread;\n" |
| 1167 |
" socklen_t peer_addrlen;\n" |
| 1168 |
" struct addrinfo hints;\n" |
| 1169 |
" struct addrinfo *result, *rp;\n" |
| 1170 |
" struct sockaddr_storage peer_addr;\n" |
| 1171 |
"\\&\n" |
| 1172 |
" if (argc != 2) {\n" |
| 1173 |
" fprintf(stderr, \"Usage: %s port\\[rs]n\", argv[0]);\n" |
| 1174 |
" exit(EXIT_FAILURE);\n" |
| 1175 |
" }\n" |
| 1176 |
"\\&\n" |
| 1177 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1178 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1179 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1180 |
" hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */\n" |
| 1181 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1182 |
" hints.ai_canonname = NULL;\n" |
| 1183 |
" hints.ai_addr = NULL;\n" |
| 1184 |
" hints.ai_next = NULL;\n" |
| 1185 |
"\\&\n" |
| 1186 |
" s = getaddrinfo(NULL, argv[1], &hints, &result);\n" |
| 1187 |
" if (s != 0) {\n" |
| 1188 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1189 |
" exit(EXIT_FAILURE);\n" |
| 1190 |
" }\n" |
| 1191 |
"\\&\n" |
| 1192 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1193 |
" Try each address until we successfully bind(2).\n" |
| 1194 |
" If socket(2) (or bind(2)) fails, we (close the socket\n" |
| 1195 |
" and) try the next address. */\n" |
| 1196 |
"\\&\n" |
| 1197 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1198 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1199 |
" rp-E<gt>ai_protocol);\n" |
| 1200 |
" if (sfd == -1)\n" |
| 1201 |
" continue;\n" |
| 1202 |
"\\&\n" |
| 1203 |
" if (bind(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) == 0)\n" |
| 1204 |
" break; /* Success */\n" |
| 1205 |
"\\&\n" |
| 1206 |
" close(sfd);\n" |
| 1207 |
" }\n" |
| 1208 |
"\\&\n" |
| 1209 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1210 |
"\\&\n" |
| 1211 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1212 |
" fprintf(stderr, \"Could not bind\\[rs]n\");\n" |
| 1213 |
" exit(EXIT_FAILURE);\n" |
| 1214 |
" }\n" |
| 1215 |
"\\&\n" |
| 1216 |
" /* Read datagrams and echo them back to sender. */\n" |
| 1217 |
"\\&\n" |
| 1218 |
" for (;;) {\n" |
| 1219 |
" char host[NI_MAXHOST], service[NI_MAXSERV];\n" |
| 1220 |
"\\&\n" |
| 1221 |
" peer_addrlen = sizeof(peer_addr);\n" |
| 1222 |
" nread = recvfrom(sfd, buf, BUF_SIZE, 0,\n" |
| 1223 |
" (struct sockaddr *) &peer_addr, &peer_addrlen);\n" |
| 1224 |
" if (nread == -1)\n" |
| 1225 |
" continue; /* Ignore failed request */\n" |
| 1226 |
"\\&\n" |
| 1227 |
" s = getnameinfo((struct sockaddr *) &peer_addr,\n" |
| 1228 |
" peer_addrlen, host, NI_MAXHOST,\n" |
| 1229 |
" service, NI_MAXSERV, NI_NUMERICSERV);\n" |
| 1230 |
" if (s == 0)\n" |
| 1231 |
" printf(\"Received %zd bytes from %s:%s\\[rs]n\",\n" |
| 1232 |
" nread, host, service);\n" |
| 1233 |
" else\n" |
| 1234 |
" fprintf(stderr, \"getnameinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1235 |
"\\&\n" |
| 1236 |
" if (sendto(sfd, buf, nread, 0, (struct sockaddr *) &peer_addr,\n" |
| 1237 |
" peer_addrlen) != nread)\n" |
| 1238 |
" {\n" |
| 1239 |
" fprintf(stderr, \"Error sending response\\[rs]n\");\n" |
| 1240 |
" }\n" |
| 1241 |
" }\n" |
| 1242 |
"}\n" |
| 1243 |
msgstr "" |
| 1244 |
"#include E<lt>netdb.hE<gt>\n" |
| 1245 |
"#include E<lt>stdio.hE<gt>\n" |
| 1246 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1247 |
"#include E<lt>string.hE<gt>\n" |
| 1248 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1249 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1250 |
"#include E<lt>unistd.hE<gt>\n" |
| 1251 |
"\\&\n" |
| 1252 |
"#define BUF_SIZE 500\n" |
| 1253 |
"\\&\n" |
| 1254 |
"int\n" |
| 1255 |
"main(int argc, char *argv[])\n" |
| 1256 |
"{\n" |
| 1257 |
" int sfd, s;\n" |
| 1258 |
" char buf[BUF_SIZE];\n" |
| 1259 |
" ssize_t nread;\n" |
| 1260 |
" socklen_t peer_addrlen;\n" |
| 1261 |
" struct addrinfo hints;\n" |
| 1262 |
" struct addrinfo *result, *rp;\n" |
| 1263 |
" struct sockaddr_storage peer_addr;\n" |
| 1264 |
"\\&\n" |
| 1265 |
" if (argc != 2) {\n" |
| 1266 |
" fprintf(stderr, \"Usage: %s port\\[rs]n\", argv[0]);\n" |
| 1267 |
" exit(EXIT_FAILURE);\n" |
| 1268 |
" }\n" |
| 1269 |
"\\&\n" |
| 1270 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1271 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1272 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1273 |
" hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */\n" |
| 1274 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1275 |
" hints.ai_canonname = NULL;\n" |
| 1276 |
" hints.ai_addr = NULL;\n" |
| 1277 |
" hints.ai_next = NULL;\n" |
| 1278 |
"\\&\n" |
| 1279 |
" s = getaddrinfo(NULL, argv[1], &hints, &result);\n" |
| 1280 |
" if (s != 0) {\n" |
| 1281 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1282 |
" exit(EXIT_FAILURE);\n" |
| 1283 |
" }\n" |
| 1284 |
"\\&\n" |
| 1285 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1286 |
" Try each address until we successfully bind(2).\n" |
| 1287 |
" If socket(2) (or bind(2)) fails, we (close the socket\n" |
| 1288 |
" and) try the next address. */\n" |
| 1289 |
"\\&\n" |
| 1290 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1291 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1292 |
" rp-E<gt>ai_protocol);\n" |
| 1293 |
" if (sfd == -1)\n" |
| 1294 |
" continue;\n" |
| 1295 |
"\\&\n" |
| 1296 |
" if (bind(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) == 0)\n" |
| 1297 |
" break; /* Success */\n" |
| 1298 |
"\\&\n" |
| 1299 |
" close(sfd);\n" |
| 1300 |
" }\n" |
| 1301 |
"\\&\n" |
| 1302 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1303 |
"\\&\n" |
| 1304 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1305 |
" fprintf(stderr, \"Could not bind\\[rs]n\");\n" |
| 1306 |
" exit(EXIT_FAILURE);\n" |
| 1307 |
" }\n" |
| 1308 |
"\\&\n" |
| 1309 |
" /* Read datagrams and echo them back to sender. */\n" |
| 1310 |
"\\&\n" |
| 1311 |
" for (;;) {\n" |
| 1312 |
" char host[NI_MAXHOST], service[NI_MAXSERV];\n" |
| 1313 |
"\\&\n" |
| 1314 |
" peer_addrlen = sizeof(peer_addr);\n" |
| 1315 |
" nread = recvfrom(sfd, buf, BUF_SIZE, 0,\n" |
| 1316 |
" (struct sockaddr *) &peer_addr, &peer_addrlen);\n" |
| 1317 |
" if (nread == -1)\n" |
| 1318 |
" continue; /* Ignore failed request */\n" |
| 1319 |
"\\&\n" |
| 1320 |
" s = getnameinfo((struct sockaddr *) &peer_addr,\n" |
| 1321 |
" peer_addrlen, host, NI_MAXHOST,\n" |
| 1322 |
" service, NI_MAXSERV, NI_NUMERICSERV);\n" |
| 1323 |
" if (s == 0)\n" |
| 1324 |
" printf(\"Received %zd bytes from %s:%s\\[rs]n\",\n" |
| 1325 |
" nread, host, service);\n" |
| 1326 |
" else\n" |
| 1327 |
" fprintf(stderr, \"getnameinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1328 |
"\\&\n" |
| 1329 |
" if (sendto(sfd, buf, nread, 0, (struct sockaddr *) &peer_addr,\n" |
| 1330 |
" peer_addrlen) != nread)\n" |
| 1331 |
" {\n" |
| 1332 |
" fprintf(stderr, \"Error sending response\\[rs]n\");\n" |
| 1333 |
" }\n" |
| 1334 |
" }\n" |
| 1335 |
"}\n" |
| 1336 |
|
| 1337 |
#. SRC END |
| 1338 |
#. type: SS |
| 1339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1341 |
#, no-wrap |
| 1342 |
msgid "Client program" |
| 1343 |
msgstr "برنامج العميل" |
| 1344 |
|
| 1345 |
#. type: Plain text |
| 1346 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1347 |
#: opensuse-tumbleweed |
| 1348 |
#, no-wrap |
| 1349 |
msgid "" |
| 1350 |
"#include E<lt>netdb.hE<gt>\n" |
| 1351 |
"#include E<lt>stdio.hE<gt>\n" |
| 1352 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1353 |
"#include E<lt>string.hE<gt>\n" |
| 1354 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1355 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1356 |
"#include E<lt>unistd.hE<gt>\n" |
| 1357 |
"\\&\n" |
| 1358 |
"#define BUF_SIZE 500\n" |
| 1359 |
"\\&\n" |
| 1360 |
"int\n" |
| 1361 |
"main(int argc, char *argv[])\n" |
| 1362 |
"{\n" |
| 1363 |
" int sfd, s;\n" |
| 1364 |
" char buf[BUF_SIZE];\n" |
| 1365 |
" size_t size;\n" |
| 1366 |
" ssize_t nread;\n" |
| 1367 |
" struct addrinfo hints;\n" |
| 1368 |
" struct addrinfo *result, *rp;\n" |
| 1369 |
"\\&\n" |
| 1370 |
" if (argc E<lt> 3) {\n" |
| 1371 |
" fprintf(stderr, \"Usage: %s host port msg...\\[rs]n\", argv[0]);\n" |
| 1372 |
" exit(EXIT_FAILURE);\n" |
| 1373 |
" }\n" |
| 1374 |
"\\&\n" |
| 1375 |
" /* Obtain address(es) matching host/port. */\n" |
| 1376 |
"\\&\n" |
| 1377 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1378 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1379 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1380 |
" hints.ai_flags = 0;\n" |
| 1381 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1382 |
"\\&\n" |
| 1383 |
" s = getaddrinfo(argv[1], argv[2], &hints, &result);\n" |
| 1384 |
" if (s != 0) {\n" |
| 1385 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1386 |
" exit(EXIT_FAILURE);\n" |
| 1387 |
" }\n" |
| 1388 |
"\\&\n" |
| 1389 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1390 |
" Try each address until we successfully connect(2).\n" |
| 1391 |
" If socket(2) (or connect(2)) fails, we (close the socket\n" |
| 1392 |
" and) try the next address. */\n" |
| 1393 |
"\\&\n" |
| 1394 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1395 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1396 |
" rp-E<gt>ai_protocol);\n" |
| 1397 |
" if (sfd == -1)\n" |
| 1398 |
" continue;\n" |
| 1399 |
"\\&\n" |
| 1400 |
" if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n" |
| 1401 |
" break; /* Success */\n" |
| 1402 |
"\\&\n" |
| 1403 |
" close(sfd);\n" |
| 1404 |
" }\n" |
| 1405 |
"\\&\n" |
| 1406 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1407 |
"\\&\n" |
| 1408 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1409 |
" fprintf(stderr, \"Could not connect\\[rs]n\");\n" |
| 1410 |
" exit(EXIT_FAILURE);\n" |
| 1411 |
" }\n" |
| 1412 |
"\\&\n" |
| 1413 |
" /* Send remaining command-line arguments as separate\n" |
| 1414 |
" datagrams, and read responses from server. */\n" |
| 1415 |
"\\&\n" |
| 1416 |
" for (size_t j = 3; j E<lt> argc; j++) {\n" |
| 1417 |
" size = strlen(argv[j]) + 1;\n" |
| 1418 |
" /* +1 for terminating null byte */\n" |
| 1419 |
"\\&\n" |
| 1420 |
" if (size E<gt> BUF_SIZE) {\n" |
| 1421 |
" fprintf(stderr,\n" |
| 1422 |
" \"Ignoring long message in argument %zu\\[rs]n\", j);\n" |
| 1423 |
" continue;\n" |
| 1424 |
" }\n" |
| 1425 |
"\\&\n" |
| 1426 |
" if (write(sfd, argv[j], size) != size) {\n" |
| 1427 |
" fprintf(stderr, \"partial/failed write\\[rs]n\");\n" |
| 1428 |
" exit(EXIT_FAILURE);\n" |
| 1429 |
" }\n" |
| 1430 |
"\\&\n" |
| 1431 |
" nread = read(sfd, buf, BUF_SIZE);\n" |
| 1432 |
" if (nread == -1) {\n" |
| 1433 |
" perror(\"read\");\n" |
| 1434 |
" exit(EXIT_FAILURE);\n" |
| 1435 |
" }\n" |
| 1436 |
"\\&\n" |
| 1437 |
" printf(\"Received %zd bytes: %s\\[rs]n\", nread, buf);\n" |
| 1438 |
" }\n" |
| 1439 |
"\\&\n" |
| 1440 |
" exit(EXIT_SUCCESS);\n" |
| 1441 |
"}\n" |
| 1442 |
msgstr "" |
| 1443 |
"#include E<lt>netdb.hE<gt>\n" |
| 1444 |
"#include E<lt>stdio.hE<gt>\n" |
| 1445 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1446 |
"#include E<lt>string.hE<gt>\n" |
| 1447 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1448 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1449 |
"#include E<lt>unistd.hE<gt>\n" |
| 1450 |
"\\&\n" |
| 1451 |
"#define BUF_SIZE 500\n" |
| 1452 |
"\\&\n" |
| 1453 |
"int\n" |
| 1454 |
"main(int argc, char *argv[])\n" |
| 1455 |
"{\n" |
| 1456 |
" int sfd, s;\n" |
| 1457 |
" char buf[BUF_SIZE];\n" |
| 1458 |
" size_t size;\n" |
| 1459 |
" ssize_t nread;\n" |
| 1460 |
" struct addrinfo hints;\n" |
| 1461 |
" struct addrinfo *result, *rp;\n" |
| 1462 |
"\\&\n" |
| 1463 |
" if (argc E<lt> 3) {\n" |
| 1464 |
" fprintf(stderr, \"Usage: %s host port msg...\\[rs]n\", argv[0]);\n" |
| 1465 |
" exit(EXIT_FAILURE);\n" |
| 1466 |
" }\n" |
| 1467 |
"\\&\n" |
| 1468 |
" /* Obtain address(es) matching host/port. */\n" |
| 1469 |
"\\&\n" |
| 1470 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1471 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1472 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1473 |
" hints.ai_flags = 0;\n" |
| 1474 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1475 |
"\\&\n" |
| 1476 |
" s = getaddrinfo(argv[1], argv[2], &hints, &result);\n" |
| 1477 |
" if (s != 0) {\n" |
| 1478 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1479 |
" exit(EXIT_FAILURE);\n" |
| 1480 |
" }\n" |
| 1481 |
"\\&\n" |
| 1482 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1483 |
" Try each address until we successfully connect(2).\n" |
| 1484 |
" If socket(2) (or connect(2)) fails, we (close the socket\n" |
| 1485 |
" and) try the next address. */\n" |
| 1486 |
"\\&\n" |
| 1487 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1488 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1489 |
" rp-E<gt>ai_protocol);\n" |
| 1490 |
" if (sfd == -1)\n" |
| 1491 |
" continue;\n" |
| 1492 |
"\\&\n" |
| 1493 |
" if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n" |
| 1494 |
" break; /* Success */\n" |
| 1495 |
"\\&\n" |
| 1496 |
" close(sfd);\n" |
| 1497 |
" }\n" |
| 1498 |
"\\&\n" |
| 1499 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1500 |
"\\&\n" |
| 1501 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1502 |
" fprintf(stderr, \"Could not connect\\[rs]n\");\n" |
| 1503 |
" exit(EXIT_FAILURE);\n" |
| 1504 |
" }\n" |
| 1505 |
"\\&\n" |
| 1506 |
" /* Send remaining command-line arguments as separate\n" |
| 1507 |
" datagrams, and read responses from server. */\n" |
| 1508 |
"\\&\n" |
| 1509 |
" for (size_t j = 3; j E<lt> argc; j++) {\n" |
| 1510 |
" size = strlen(argv[j]) + 1;\n" |
| 1511 |
" /* +1 for terminating null byte */\n" |
| 1512 |
"\\&\n" |
| 1513 |
" if (size E<gt> BUF_SIZE) {\n" |
| 1514 |
" fprintf(stderr,\n" |
| 1515 |
" \"Ignoring long message in argument %zu\\[rs]n\", j);\n" |
| 1516 |
" continue;\n" |
| 1517 |
" }\n" |
| 1518 |
"\\&\n" |
| 1519 |
" if (write(sfd, argv[j], size) != size) {\n" |
| 1520 |
" fprintf(stderr, \"partial/failed write\\[rs]n\");\n" |
| 1521 |
" exit(EXIT_FAILURE);\n" |
| 1522 |
" }\n" |
| 1523 |
"\\&\n" |
| 1524 |
" nread = read(sfd, buf, BUF_SIZE);\n" |
| 1525 |
" if (nread == -1) {\n" |
| 1526 |
" perror(\"read\");\n" |
| 1527 |
" exit(EXIT_FAILURE);\n" |
| 1528 |
" }\n" |
| 1529 |
"\\&\n" |
| 1530 |
" printf(\"Received %zd bytes: %s\\[rs]n\", nread, buf);\n" |
| 1531 |
" }\n" |
| 1532 |
"\\&\n" |
| 1533 |
" exit(EXIT_SUCCESS);\n" |
| 1534 |
"}\n" |
| 1535 |
|
| 1536 |
#. SRC END |
| 1537 |
#. type: SH |
| 1538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1540 |
#, no-wrap |
| 1541 |
msgid "SEE ALSO" |
| 1542 |
msgstr "انظر أيضًا" |
| 1543 |
|
| 1544 |
#. .BR getipnodebyaddr (3), |
| 1545 |
#. .BR getipnodebyname (3), |
| 1546 |
#. type: Plain text |
| 1547 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1548 |
#: mageia-cauldron |
| 1549 |
msgid "" |
| 1550 |
"B<getaddrinfo_a>(3), B<gethostbyname>(3), B<getnameinfo>(3), B<inet>(3), " |
| 1551 |
"B<gai.conf>(5), B<hostname>(7), B<ip>(7)" |
| 1552 |
msgstr "" |
| 1553 |
"B<getaddrinfo_a>(3), B<gethostbyname>(3), B<getnameinfo>(3), B<inet>(3), " |
| 1554 |
"B<gai.conf>(5), B<hostname>(7), B<ip>(7)" |
| 1555 |
|
| 1556 |
#. type: TH |
| 1557 |
#: debian-trixie |
| 1558 |
#, no-wrap |
| 1559 |
msgid "2024-06-15" |
| 1560 |
msgstr "15 يونيو 2024" |
| 1561 |
|
| 1562 |
#. type: TH |
| 1563 |
#: debian-trixie |
| 1564 |
#, no-wrap |
| 1565 |
msgid "Linux man-pages 6.9.1" |
| 1566 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 1567 |
|
| 1568 |
#. type: Plain text |
| 1569 |
#: debian-trixie |
| 1570 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1571 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 1572 |
|
| 1573 |
#. type: Plain text |
| 1574 |
#: debian-trixie |
| 1575 |
msgid "" |
| 1576 |
"A pointer to the socket address is placed in the I<ai_addr> field, and the " |
| 1577 |
"length of the socket address, in bytes, is placed in the I<ai_addrlen> field." |
| 1578 |
msgstr "" |
| 1579 |
"يُوضع مؤشر إلى عنوان المقبس في الحقل I<ai_addr>، ويُوضع طول عنوان المقبس، " |
| 1580 |
"بالبايت، في الحقل I<ai_addrlen>." |
| 1581 |
|
| 1582 |
#. type: Plain text |
| 1583 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1584 |
#, no-wrap |
| 1585 |
msgid "" |
| 1586 |
"#include E<lt>netdb.hE<gt>\n" |
| 1587 |
"#include E<lt>stdio.hE<gt>\n" |
| 1588 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1589 |
"#include E<lt>string.hE<gt>\n" |
| 1590 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1591 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1592 |
"#include E<lt>unistd.hE<gt>\n" |
| 1593 |
"\\&\n" |
| 1594 |
"#define BUF_SIZE 500\n" |
| 1595 |
"\\&\n" |
| 1596 |
"int\n" |
| 1597 |
"main(int argc, char *argv[])\n" |
| 1598 |
"{\n" |
| 1599 |
" int sfd, s;\n" |
| 1600 |
" char buf[BUF_SIZE];\n" |
| 1601 |
" ssize_t nread;\n" |
| 1602 |
" socklen_t peer_addrlen;\n" |
| 1603 |
" struct addrinfo hints;\n" |
| 1604 |
" struct addrinfo *result, *rp;\n" |
| 1605 |
" struct sockaddr_storage peer_addr;\n" |
| 1606 |
"\\&\n" |
| 1607 |
" if (argc != 2) {\n" |
| 1608 |
" fprintf(stderr, \"Usage: %s port\\[rs]n\", argv[0]);\n" |
| 1609 |
" exit(EXIT_FAILURE);\n" |
| 1610 |
" }\n" |
| 1611 |
"\\&\n" |
| 1612 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1613 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1614 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1615 |
" hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */\n" |
| 1616 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1617 |
" hints.ai_canonname = NULL;\n" |
| 1618 |
" hints.ai_addr = NULL;\n" |
| 1619 |
" hints.ai_next = NULL;\n" |
| 1620 |
"\\&\n" |
| 1621 |
" s = getaddrinfo(NULL, argv[1], &hints, &result);\n" |
| 1622 |
" if (s != 0) {\n" |
| 1623 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1624 |
" exit(EXIT_FAILURE);\n" |
| 1625 |
" }\n" |
| 1626 |
"\\&\n" |
| 1627 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1628 |
" Try each address until we successfully bind(2).\n" |
| 1629 |
" If socket(2) (or bind(2)) fails, we (close the socket\n" |
| 1630 |
" and) try the next address. */\n" |
| 1631 |
"\\&\n" |
| 1632 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1633 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1634 |
" rp-E<gt>ai_protocol);\n" |
| 1635 |
" if (sfd == -1)\n" |
| 1636 |
" continue;\n" |
| 1637 |
"\\&\n" |
| 1638 |
" if (bind(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) == 0)\n" |
| 1639 |
" break; /* Success */\n" |
| 1640 |
"\\&\n" |
| 1641 |
" close(sfd);\n" |
| 1642 |
" }\n" |
| 1643 |
"\\&\n" |
| 1644 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1645 |
"\\&\n" |
| 1646 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1647 |
" fprintf(stderr, \"Could not bind\\[rs]n\");\n" |
| 1648 |
" exit(EXIT_FAILURE);\n" |
| 1649 |
" }\n" |
| 1650 |
"\\&\n" |
| 1651 |
" /* Read datagrams and echo them back to sender. */\n" |
| 1652 |
"\\&\n" |
| 1653 |
" for (;;) {\n" |
| 1654 |
" char host[NI_MAXHOST], service[NI_MAXSERV];\n" |
| 1655 |
"\\&\n" |
| 1656 |
" peer_addrlen = sizeof(peer_addr);\n" |
| 1657 |
" nread = recvfrom(sfd, buf, BUF_SIZE, 0,\n" |
| 1658 |
" (struct sockaddr *) &peer_addr, &peer_addrlen);\n" |
| 1659 |
" if (nread == -1)\n" |
| 1660 |
" continue; /* Ignore failed request */\n" |
| 1661 |
"\\&\n" |
| 1662 |
" s = getnameinfo((struct sockaddr *) &peer_addr,\n" |
| 1663 |
" peer_addrlen, host, NI_MAXHOST,\n" |
| 1664 |
" service, NI_MAXSERV, NI_NUMERICSERV);\n" |
| 1665 |
" if (s == 0)\n" |
| 1666 |
" printf(\"Received %zd bytes from %s:%s\\[rs]n\",\n" |
| 1667 |
" nread, host, service);\n" |
| 1668 |
" else\n" |
| 1669 |
" fprintf(stderr, \"getnameinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1670 |
"\\&\n" |
| 1671 |
" if (sendto(sfd, buf, nread, 0, (struct sockaddr *) &peer_addr,\n" |
| 1672 |
" peer_addrlen) != nread)\n" |
| 1673 |
" {\n" |
| 1674 |
" fprintf(stderr, \"Error sending response\\[rs]n\");\n" |
| 1675 |
" }\n" |
| 1676 |
" }\n" |
| 1677 |
"}\n" |
| 1678 |
msgstr "" |
| 1679 |
"#include E<lt>netdb.hE<gt>\n" |
| 1680 |
"#include E<lt>stdio.hE<gt>\n" |
| 1681 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1682 |
"#include E<lt>string.hE<gt>\n" |
| 1683 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1684 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1685 |
"#include E<lt>unistd.hE<gt>\n" |
| 1686 |
"\\&\n" |
| 1687 |
"#define BUF_SIZE 500\n" |
| 1688 |
"\\&\n" |
| 1689 |
"int\n" |
| 1690 |
"main(int argc, char *argv[])\n" |
| 1691 |
"{\n" |
| 1692 |
" int sfd, s;\n" |
| 1693 |
" char buf[BUF_SIZE];\n" |
| 1694 |
" ssize_t nread;\n" |
| 1695 |
" socklen_t peer_addrlen;\n" |
| 1696 |
" struct addrinfo hints;\n" |
| 1697 |
" struct addrinfo *result, *rp;\n" |
| 1698 |
" struct sockaddr_storage peer_addr;\n" |
| 1699 |
"\\&\n" |
| 1700 |
" if (argc != 2) {\n" |
| 1701 |
" fprintf(stderr, \"Usage: %s port\\[rs]n\", argv[0]);\n" |
| 1702 |
" exit(EXIT_FAILURE);\n" |
| 1703 |
" }\n" |
| 1704 |
"\\&\n" |
| 1705 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1706 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1707 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1708 |
" hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */\n" |
| 1709 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1710 |
" hints.ai_canonname = NULL;\n" |
| 1711 |
" hints.ai_addr = NULL;\n" |
| 1712 |
" hints.ai_next = NULL;\n" |
| 1713 |
"\\&\n" |
| 1714 |
" s = getaddrinfo(NULL, argv[1], &hints, &result);\n" |
| 1715 |
" if (s != 0) {\n" |
| 1716 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1717 |
" exit(EXIT_FAILURE);\n" |
| 1718 |
" }\n" |
| 1719 |
"\\&\n" |
| 1720 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1721 |
" Try each address until we successfully bind(2).\n" |
| 1722 |
" If socket(2) (or bind(2)) fails, we (close the socket\n" |
| 1723 |
" and) try the next address. */\n" |
| 1724 |
"\\&\n" |
| 1725 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1726 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1727 |
" rp-E<gt>ai_protocol);\n" |
| 1728 |
" if (sfd == -1)\n" |
| 1729 |
" continue;\n" |
| 1730 |
"\\&\n" |
| 1731 |
" if (bind(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) == 0)\n" |
| 1732 |
" break; /* Success */\n" |
| 1733 |
"\\&\n" |
| 1734 |
" close(sfd);\n" |
| 1735 |
" }\n" |
| 1736 |
"\\&\n" |
| 1737 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1738 |
"\\&\n" |
| 1739 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1740 |
" fprintf(stderr, \"Could not bind\\[rs]n\");\n" |
| 1741 |
" exit(EXIT_FAILURE);\n" |
| 1742 |
" }\n" |
| 1743 |
"\\&\n" |
| 1744 |
" /* Read datagrams and echo them back to sender. */\n" |
| 1745 |
"\\&\n" |
| 1746 |
" for (;;) {\n" |
| 1747 |
" char host[NI_MAXHOST], service[NI_MAXSERV];\n" |
| 1748 |
"\\&\n" |
| 1749 |
" peer_addrlen = sizeof(peer_addr);\n" |
| 1750 |
" nread = recvfrom(sfd, buf, BUF_SIZE, 0,\n" |
| 1751 |
" (struct sockaddr *) &peer_addr, &peer_addrlen);\n" |
| 1752 |
" if (nread == -1)\n" |
| 1753 |
" continue; /* Ignore failed request */\n" |
| 1754 |
"\\&\n" |
| 1755 |
" s = getnameinfo((struct sockaddr *) &peer_addr,\n" |
| 1756 |
" peer_addrlen, host, NI_MAXHOST,\n" |
| 1757 |
" service, NI_MAXSERV, NI_NUMERICSERV);\n" |
| 1758 |
" if (s == 0)\n" |
| 1759 |
" printf(\"Received %zd bytes from %s:%s\\[rs]n\",\n" |
| 1760 |
" nread, host, service);\n" |
| 1761 |
" else\n" |
| 1762 |
" fprintf(stderr, \"getnameinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1763 |
"\\&\n" |
| 1764 |
" if (sendto(sfd, buf, nread, 0, (struct sockaddr *) &peer_addr,\n" |
| 1765 |
" peer_addrlen) != nread)\n" |
| 1766 |
" {\n" |
| 1767 |
" fprintf(stderr, \"Error sending response\\[rs]n\");\n" |
| 1768 |
" }\n" |
| 1769 |
" }\n" |
| 1770 |
"}\n" |
| 1771 |
|
| 1772 |
#. type: Plain text |
| 1773 |
#: debian-trixie |
| 1774 |
#, no-wrap |
| 1775 |
msgid "" |
| 1776 |
"#include E<lt>netdb.hE<gt>\n" |
| 1777 |
"#include E<lt>stdio.hE<gt>\n" |
| 1778 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1779 |
"#include E<lt>string.hE<gt>\n" |
| 1780 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1781 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1782 |
"#include E<lt>unistd.hE<gt>\n" |
| 1783 |
"\\&\n" |
| 1784 |
"#define BUF_SIZE 500\n" |
| 1785 |
"\\&\n" |
| 1786 |
"int\n" |
| 1787 |
"main(int argc, char *argv[])\n" |
| 1788 |
"{\n" |
| 1789 |
" int sfd, s;\n" |
| 1790 |
" char buf[BUF_SIZE];\n" |
| 1791 |
" size_t len;\n" |
| 1792 |
" ssize_t nread;\n" |
| 1793 |
" struct addrinfo hints;\n" |
| 1794 |
" struct addrinfo *result, *rp;\n" |
| 1795 |
"\\&\n" |
| 1796 |
" if (argc E<lt> 3) {\n" |
| 1797 |
" fprintf(stderr, \"Usage: %s host port msg...\\[rs]n\", argv[0]);\n" |
| 1798 |
" exit(EXIT_FAILURE);\n" |
| 1799 |
" }\n" |
| 1800 |
"\\&\n" |
| 1801 |
" /* Obtain address(es) matching host/port. */\n" |
| 1802 |
"\\&\n" |
| 1803 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1804 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1805 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1806 |
" hints.ai_flags = 0;\n" |
| 1807 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1808 |
"\\&\n" |
| 1809 |
" s = getaddrinfo(argv[1], argv[2], &hints, &result);\n" |
| 1810 |
" if (s != 0) {\n" |
| 1811 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1812 |
" exit(EXIT_FAILURE);\n" |
| 1813 |
" }\n" |
| 1814 |
"\\&\n" |
| 1815 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1816 |
" Try each address until we successfully connect(2).\n" |
| 1817 |
" If socket(2) (or connect(2)) fails, we (close the socket\n" |
| 1818 |
" and) try the next address. */\n" |
| 1819 |
"\\&\n" |
| 1820 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1821 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1822 |
" rp-E<gt>ai_protocol);\n" |
| 1823 |
" if (sfd == -1)\n" |
| 1824 |
" continue;\n" |
| 1825 |
"\\&\n" |
| 1826 |
" if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n" |
| 1827 |
" break; /* Success */\n" |
| 1828 |
"\\&\n" |
| 1829 |
" close(sfd);\n" |
| 1830 |
" }\n" |
| 1831 |
"\\&\n" |
| 1832 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1833 |
"\\&\n" |
| 1834 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1835 |
" fprintf(stderr, \"Could not connect\\[rs]n\");\n" |
| 1836 |
" exit(EXIT_FAILURE);\n" |
| 1837 |
" }\n" |
| 1838 |
"\\&\n" |
| 1839 |
" /* Send remaining command-line arguments as separate\n" |
| 1840 |
" datagrams, and read responses from server. */\n" |
| 1841 |
"\\&\n" |
| 1842 |
" for (size_t j = 3; j E<lt> argc; j++) {\n" |
| 1843 |
" len = strlen(argv[j]) + 1;\n" |
| 1844 |
" /* +1 for terminating null byte */\n" |
| 1845 |
"\\&\n" |
| 1846 |
" if (len E<gt> BUF_SIZE) {\n" |
| 1847 |
" fprintf(stderr,\n" |
| 1848 |
" \"Ignoring long message in argument %zu\\[rs]n\", j);\n" |
| 1849 |
" continue;\n" |
| 1850 |
" }\n" |
| 1851 |
"\\&\n" |
| 1852 |
" if (write(sfd, argv[j], len) != len) {\n" |
| 1853 |
" fprintf(stderr, \"partial/failed write\\[rs]n\");\n" |
| 1854 |
" exit(EXIT_FAILURE);\n" |
| 1855 |
" }\n" |
| 1856 |
"\\&\n" |
| 1857 |
" nread = read(sfd, buf, BUF_SIZE);\n" |
| 1858 |
" if (nread == -1) {\n" |
| 1859 |
" perror(\"read\");\n" |
| 1860 |
" exit(EXIT_FAILURE);\n" |
| 1861 |
" }\n" |
| 1862 |
"\\&\n" |
| 1863 |
" printf(\"Received %zd bytes: %s\\[rs]n\", nread, buf);\n" |
| 1864 |
" }\n" |
| 1865 |
"\\&\n" |
| 1866 |
" exit(EXIT_SUCCESS);\n" |
| 1867 |
"}\n" |
| 1868 |
msgstr "" |
| 1869 |
"#include E<lt>netdb.hE<gt>\n" |
| 1870 |
"#include E<lt>stdio.hE<gt>\n" |
| 1871 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1872 |
"#include E<lt>string.hE<gt>\n" |
| 1873 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1874 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1875 |
"#include E<lt>unistd.hE<gt>\n" |
| 1876 |
"\\&\n" |
| 1877 |
"#define BUF_SIZE 500\n" |
| 1878 |
"\\&\n" |
| 1879 |
"int\n" |
| 1880 |
"main(int argc, char *argv[])\n" |
| 1881 |
"{\n" |
| 1882 |
" int sfd, s;\n" |
| 1883 |
" char buf[BUF_SIZE];\n" |
| 1884 |
" size_t len;\n" |
| 1885 |
" ssize_t nread;\n" |
| 1886 |
" struct addrinfo hints;\n" |
| 1887 |
" struct addrinfo *result, *rp;\n" |
| 1888 |
"\\&\n" |
| 1889 |
" if (argc E<lt> 3) {\n" |
| 1890 |
" fprintf(stderr, \"Usage: %s host port msg...\\[rs]n\", argv[0]);\n" |
| 1891 |
" exit(EXIT_FAILURE);\n" |
| 1892 |
" }\n" |
| 1893 |
"\\&\n" |
| 1894 |
" /* Obtain address(es) matching host/port. */\n" |
| 1895 |
"\\&\n" |
| 1896 |
" memset(&hints, 0, sizeof(hints));\n" |
| 1897 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 1898 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 1899 |
" hints.ai_flags = 0;\n" |
| 1900 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 1901 |
"\\&\n" |
| 1902 |
" s = getaddrinfo(argv[1], argv[2], &hints, &result);\n" |
| 1903 |
" if (s != 0) {\n" |
| 1904 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 1905 |
" exit(EXIT_FAILURE);\n" |
| 1906 |
" }\n" |
| 1907 |
"\\&\n" |
| 1908 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 1909 |
" Try each address until we successfully connect(2).\n" |
| 1910 |
" If socket(2) (or connect(2)) fails, we (close the socket\n" |
| 1911 |
" and) try the next address. */\n" |
| 1912 |
"\\&\n" |
| 1913 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 1914 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 1915 |
" rp-E<gt>ai_protocol);\n" |
| 1916 |
" if (sfd == -1)\n" |
| 1917 |
" continue;\n" |
| 1918 |
"\\&\n" |
| 1919 |
" if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n" |
| 1920 |
" break; /* Success */\n" |
| 1921 |
"\\&\n" |
| 1922 |
" close(sfd);\n" |
| 1923 |
" }\n" |
| 1924 |
"\\&\n" |
| 1925 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 1926 |
"\\&\n" |
| 1927 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 1928 |
" fprintf(stderr, \"Could not connect\\[rs]n\");\n" |
| 1929 |
" exit(EXIT_FAILURE);\n" |
| 1930 |
" }\n" |
| 1931 |
"\\&\n" |
| 1932 |
" /* Send remaining command-line arguments as separate\n" |
| 1933 |
" datagrams, and read responses from server. */\n" |
| 1934 |
"\\&\n" |
| 1935 |
" for (size_t j = 3; j E<lt> argc; j++) {\n" |
| 1936 |
" len = strlen(argv[j]) + 1;\n" |
| 1937 |
" /* +1 for terminating null byte */\n" |
| 1938 |
"\\&\n" |
| 1939 |
" if (len E<gt> BUF_SIZE) {\n" |
| 1940 |
" fprintf(stderr,\n" |
| 1941 |
" \"Ignoring long message in argument %zu\\[rs]n\", j);\n" |
| 1942 |
" continue;\n" |
| 1943 |
" }\n" |
| 1944 |
"\\&\n" |
| 1945 |
" if (write(sfd, argv[j], len) != len) {\n" |
| 1946 |
" fprintf(stderr, \"partial/failed write\\[rs]n\");\n" |
| 1947 |
" exit(EXIT_FAILURE);\n" |
| 1948 |
" }\n" |
| 1949 |
"\\&\n" |
| 1950 |
" nread = read(sfd, buf, BUF_SIZE);\n" |
| 1951 |
" if (nread == -1) {\n" |
| 1952 |
" perror(\"read\");\n" |
| 1953 |
" exit(EXIT_FAILURE);\n" |
| 1954 |
" }\n" |
| 1955 |
"\\&\n" |
| 1956 |
" printf(\"Received %zd bytes: %s\\[rs]n\", nread, buf);\n" |
| 1957 |
" }\n" |
| 1958 |
"\\&\n" |
| 1959 |
" exit(EXIT_SUCCESS);\n" |
| 1960 |
"}\n" |
| 1961 |
|
| 1962 |
#. type: TH |
| 1963 |
#: fedora-44 fedora-rawhide |
| 1964 |
#, no-wrap |
| 1965 |
msgid "2024-11-17" |
| 1966 |
msgstr "17 نوفمبر 2024" |
| 1967 |
|
| 1968 |
#. type: TH |
| 1969 |
#: fedora-44 fedora-rawhide |
| 1970 |
#, no-wrap |
| 1971 |
msgid "Linux man-pages 6.13" |
| 1972 |
msgstr "صفحات دليل لينكس 6.13" |
| 1973 |
|
| 1974 |
#. type: Plain text |
| 1975 |
#: fedora-44 fedora-rawhide |
| 1976 |
#, no-wrap |
| 1977 |
msgid "" |
| 1978 |
"#include E<lt>netdb.hE<gt>\n" |
| 1979 |
"#include E<lt>stdio.hE<gt>\n" |
| 1980 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1981 |
"#include E<lt>string.hE<gt>\n" |
| 1982 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1983 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1984 |
"#include E<lt>unistd.hE<gt>\n" |
| 1985 |
"\\&\n" |
| 1986 |
"#define BUF_SIZE 500\n" |
| 1987 |
"\\&\n" |
| 1988 |
"int\n" |
| 1989 |
"main(int argc, char *argv[])\n" |
| 1990 |
"{\n" |
| 1991 |
" int sfd, s;\n" |
| 1992 |
" char buf[BUF_SIZE];\n" |
| 1993 |
" size_t size;\n" |
| 1994 |
" ssize_t nread;\n" |
| 1995 |
" struct addrinfo hints;\n" |
| 1996 |
" struct addrinfo *result, *rp;\n" |
| 1997 |
"\\&\n" |
| 1998 |
" if (argc E<lt> 3) {\n" |
| 1999 |
" fprintf(stderr, \"Usage: %s host port msg...\\[rs]n\", argv[0]);\n" |
| 2000 |
" exit(EXIT_FAILURE);\n" |
| 2001 |
" }\n" |
| 2002 |
"\\&\n" |
| 2003 |
" /* Obtain address(es) matching host/port. */\n" |
| 2004 |
"\\&\n" |
| 2005 |
" memset(&hints, 0, sizeof(hints));\n" |
| 2006 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 2007 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 2008 |
" hints.ai_flags = 0;\n" |
| 2009 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 2010 |
"\\&\n" |
| 2011 |
" s = getaddrinfo(argv[1], argv[2], &hints, &result);\n" |
| 2012 |
" if (s != 0) {\n" |
| 2013 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 2014 |
" exit(EXIT_FAILURE);\n" |
| 2015 |
" }\n" |
| 2016 |
"\\&\n" |
| 2017 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 2018 |
" Try each address until we successfully connect(2).\n" |
| 2019 |
" If socket(2) (or connect(2)) fails, we (close the socket\n" |
| 2020 |
" and) try the next address. */\n" |
| 2021 |
"\\&\n" |
| 2022 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 2023 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 2024 |
" rp-E<gt>ai_protocol);\n" |
| 2025 |
" if (sfd == -1)\n" |
| 2026 |
" continue;\n" |
| 2027 |
"\\&\n" |
| 2028 |
" if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n" |
| 2029 |
" break; /* Success */\n" |
| 2030 |
"\\&\n" |
| 2031 |
" close(sfd);\n" |
| 2032 |
" }\n" |
| 2033 |
"\\&\n" |
| 2034 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 2035 |
"\\&\n" |
| 2036 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 2037 |
" fprintf(stderr, \"Could not connect\\[rs]n\");\n" |
| 2038 |
" exit(EXIT_FAILURE);\n" |
| 2039 |
" }\n" |
| 2040 |
"\\&\n" |
| 2041 |
" /* Send remaining command-line arguments as separate\n" |
| 2042 |
" datagrams, and read responses from server. */\n" |
| 2043 |
"\\&\n" |
| 2044 |
" for (size_t j = 3; j E<lt> argc; j++) {\n" |
| 2045 |
" size = strlen(argv[j]) + 1;\n" |
| 2046 |
" /* +1 for terminating null byte */\n" |
| 2047 |
"\\&\n" |
| 2048 |
" if (size E<gt> BUF_SIZE) {\n" |
| 2049 |
" fprintf(stderr,\n" |
| 2050 |
" \"Ignoring long message in argument %zu\\[rs]n\", j);\n" |
| 2051 |
" continue;\n" |
| 2052 |
" }\n" |
| 2053 |
"\\&\n" |
| 2054 |
" if (write(sfd, argv[j], size) != size) {\n" |
| 2055 |
" fprintf(stderr, \"partial/failed write\\[rs]n\");\n" |
| 2056 |
" exit(EXIT_FAILURE);\n" |
| 2057 |
" }\n" |
| 2058 |
"\\&\n" |
| 2059 |
" nread = read(sfd, buf, BUF_SIZE);\n" |
| 2060 |
" if (nread == -1) {\n" |
| 2061 |
" perror(\"read\");\n" |
| 2062 |
" exit(EXIT_FAILURE);\n" |
| 2063 |
" }\n" |
| 2064 |
"\\&\n" |
| 2065 |
" printf(\"Received %zd bytes: %s\\[rs]n\", nread, buf);\n" |
| 2066 |
" }\n" |
| 2067 |
"\\&\n" |
| 2068 |
" exit(EXIT_SUCCESS);\n" |
| 2069 |
"}\n" |
| 2070 |
msgstr "" |
| 2071 |
"#include E<lt>netdb.hE<gt>\n" |
| 2072 |
"#include E<lt>stdio.hE<gt>\n" |
| 2073 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2074 |
"#include E<lt>string.hE<gt>\n" |
| 2075 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2076 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2077 |
"#include E<lt>unistd.hE<gt>\n" |
| 2078 |
"\\&\n" |
| 2079 |
"#define BUF_SIZE 500\n" |
| 2080 |
"\\&\n" |
| 2081 |
"int\n" |
| 2082 |
"main(int argc, char *argv[])\n" |
| 2083 |
"{\n" |
| 2084 |
" int sfd, s;\n" |
| 2085 |
" char buf[BUF_SIZE];\n" |
| 2086 |
" size_t size;\n" |
| 2087 |
" ssize_t nread;\n" |
| 2088 |
" struct addrinfo hints;\n" |
| 2089 |
" struct addrinfo *result, *rp;\n" |
| 2090 |
"\\&\n" |
| 2091 |
" if (argc E<lt> 3) {\n" |
| 2092 |
" fprintf(stderr, \"Usage: %s host port msg...\\[rs]n\", argv[0]);\n" |
| 2093 |
" exit(EXIT_FAILURE);\n" |
| 2094 |
" }\n" |
| 2095 |
"\\&\n" |
| 2096 |
" /* Obtain address(es) matching host/port. */\n" |
| 2097 |
"\\&\n" |
| 2098 |
" memset(&hints, 0, sizeof(hints));\n" |
| 2099 |
" hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */\n" |
| 2100 |
" hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n" |
| 2101 |
" hints.ai_flags = 0;\n" |
| 2102 |
" hints.ai_protocol = 0; /* Any protocol */\n" |
| 2103 |
"\\&\n" |
| 2104 |
" s = getaddrinfo(argv[1], argv[2], &hints, &result);\n" |
| 2105 |
" if (s != 0) {\n" |
| 2106 |
" fprintf(stderr, \"getaddrinfo: %s\\[rs]n\", gai_strerror(s));\n" |
| 2107 |
" exit(EXIT_FAILURE);\n" |
| 2108 |
" }\n" |
| 2109 |
"\\&\n" |
| 2110 |
" /* getaddrinfo() returns a list of address structures.\n" |
| 2111 |
" Try each address until we successfully connect(2).\n" |
| 2112 |
" If socket(2) (or connect(2)) fails, we (close the socket\n" |
| 2113 |
" and) try the next address. */\n" |
| 2114 |
"\\&\n" |
| 2115 |
" for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n" |
| 2116 |
" sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n" |
| 2117 |
" rp-E<gt>ai_protocol);\n" |
| 2118 |
" if (sfd == -1)\n" |
| 2119 |
" continue;\n" |
| 2120 |
"\\&\n" |
| 2121 |
" if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n" |
| 2122 |
" break; /* Success */\n" |
| 2123 |
"\\&\n" |
| 2124 |
" close(sfd);\n" |
| 2125 |
" }\n" |
| 2126 |
"\\&\n" |
| 2127 |
" freeaddrinfo(result); /* No longer needed */\n" |
| 2128 |
"\\&\n" |
| 2129 |
" if (rp == NULL) { /* No address succeeded */\n" |
| 2130 |
" fprintf(stderr, \"Could not connect\\[rs]n\");\n" |
| 2131 |
" exit(EXIT_FAILURE);\n" |
| 2132 |
" }\n" |
| 2133 |
"\\&\n" |
| 2134 |
" /* Send remaining command-line arguments as separate\n" |
| 2135 |
" datagrams, and read responses from server. */\n" |
| 2136 |
"\\&\n" |
| 2137 |
" for (size_t j = 3; j E<lt> argc; j++) {\n" |
| 2138 |
" size = strlen(argv[j]) + 1;\n" |
| 2139 |
" /* +1 for terminating null byte */\n" |
| 2140 |
"\\&\n" |
| 2141 |
" if (size E<gt> BUF_SIZE) {\n" |
| 2142 |
" fprintf(stderr,\n" |
| 2143 |
" \"Ignoring long message in argument %zu\\[rs]n\", j);\n" |
| 2144 |
" continue;\n" |
| 2145 |
" }\n" |
| 2146 |
"\\&\n" |
| 2147 |
" if (write(sfd, argv[j], size) != size) {\n" |
| 2148 |
" fprintf(stderr, \"partial/failed write\\[rs]n\");\n" |
| 2149 |
" exit(EXIT_FAILURE);\n" |
| 2150 |
" }\n" |
| 2151 |
"\\&\n" |
| 2152 |
" nread = read(sfd, buf, BUF_SIZE);\n" |
| 2153 |
" if (nread == -1) {\n" |
| 2154 |
" perror(\"read\");\n" |
| 2155 |
" exit(EXIT_FAILURE);\n" |
| 2156 |
" }\n" |
| 2157 |
"\\&\n" |
| 2158 |
" printf(\"Received %zd bytes: %s\\[rs]n\", nread, buf);\n" |
| 2159 |
" }\n" |
| 2160 |
"\\&\n" |
| 2161 |
" exit(EXIT_SUCCESS);\n" |
| 2162 |
"}\n" |
| 2163 |
|
| 2164 |
#. type: TH |
| 2165 |
#: mageia-cauldron |
| 2166 |
#, no-wrap |
| 2167 |
msgid "Linux man-pages 6.17" |
| 2168 |
msgstr "صفحات دليل لينكس 6.17" |
| 2169 |
|
| 2170 |
#. type: TH |
| 2171 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2172 |
#, no-wrap |
| 2173 |
msgid "Linux man-pages (unreleased)" |
| 2174 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |
| 2175 |
|
| 2176 |
#. .BR getipnodebyaddr (3), |
| 2177 |
#. .BR getipnodebyname (3), |
| 2178 |
#. type: Plain text |
| 2179 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2180 |
msgid "" |
| 2181 |
"B<getaddrinfo_a>(3), B<gethostbyname>(3), B<getnameinfo>(3), B<gai.conf>(5), " |
| 2182 |
"B<inet>(3), B<gai.conf>(5), B<hostname>(7), B<ip>(7)" |
| 2183 |
msgstr "" |
| 2184 |
"B<getaddrinfo_a>(3), B<gethostbyname>(3), B<getnameinfo>(3), B<gai.conf>(5), " |
| 2185 |
"B<inet>(3), B<gai.conf>(5), B<hostname>(7), B<ip>(7)" |
| 2186 |
|