Debian Codegraph @

po/ar/man2/sendmmsg.2.po

raw
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 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
9 "PO-Revision-Date: 2026-05-18 18:21+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "sendmmsg"
25 msgstr "sendmmsg"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "الاسم"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "sendmmsg - send multiple messages on a socket"
51 msgstr "sendmmsg - إرسال رسائل متعددة على مقبس"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "المكتبة"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "موجز"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid ""
78 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
79 "B<#include E<lt>sys/socket.hE<gt>>\n"
80 msgstr ""
81 "B<#define _GNU_SOURCE> /* انظر feature_test_macros(7) */\n"
82 "B<#include E<lt>sys/socket.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
86 #: opensuse-tumbleweed
87 #, no-wrap
88 msgid ""
89 "B<int sendmmsg(>unsigned int n;\n"
90 "B< int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[>I<n>B<], unsigned int >I<n>B<,>\n"
91 "B< int >I<flags>B<);>\n"
92 msgstr ""
93 "B<int sendmmsg(>unsigned int n;\n"
94 "B< int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[>I<n>B<], unsigned int >I<n>B<,>\n"
95 "B< int >I<flags>B<);>\n"
96
97 #. type: SH
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "DESCRIPTION"
102 msgstr "الوصف"
103
104 #. See commit 228e548e602061b08ee8e8966f567c12aa079682
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "The B<sendmmsg>() system call is an extension of B<sendmsg>(2) that allows "
110 "the caller to transmit multiple messages on a socket using a single system "
111 "call. (This has performance benefits for some applications.)"
112 msgstr ""
113 "استدعاء النظام B<sendmmsg>() هو امتداد لـ B<sendmsg>(2) يسمح للمستدعي "
114 "بإرسال رسائل متعددة على مقبس باستخدام استدعاء نظام واحد. (هذا يوفر فوائد "
115 "أداء لبعض التطبيقات.)"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "The I<sockfd> argument is the file descriptor of the socket on which data is "
122 "to be transmitted."
123 msgstr "الوسيط I<sockfd> هو واصف ملف المقبس الذي سيتم إرسال البيانات عليه."
124
125 #. type: Plain text
126 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
127 #: opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
130 "The size of this array is specified in I<n>."
131 msgstr ""
132 "المعامل I<msgvec> هو مؤشر لمصفوفة من هياكل I<mmsghdr>. حُدد حجم هذه المصفوفة "
133 "في I<n>."
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid "The I<mmsghdr> structure is defined in I<E<lt>sys/socket.hE<gt>> as:"
139 msgstr "عُرف هيكل I<mmsghdr> في I<E<lt>sys/socket.hE<gt>> كالتالي:"
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid ""
146 "struct mmsghdr {\n"
147 " struct msghdr msg_hdr; /* Message header */\n"
148 " unsigned int msg_len; /* Number of bytes transmitted */\n"
149 "};\n"
150 msgstr ""
151 "struct mmsghdr {\n"
152 " struct msghdr msg_hdr; /* رأس الرسالة */\n"
153 " unsigned int msg_len; /* عدد البايتات المرسلة */\n"
154 "};\n"
155
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 "The I<msg_hdr> field is a I<msghdr> structure, as described in "
161 "B<sendmsg>(2). The I<msg_len> field is used to return the number of bytes "
162 "sent from the message in I<msg_hdr> (i.e., the same as the return value from "
163 "a single B<sendmsg>(2) call)."
164 msgstr ""
165 "الحقل I<msg_hdr> هو بنية I<msghdr>، كما هو موصوف في B<sendmsg>(2). يُستخدم "
166 "الحقل I<msg_len> لإرجاع عدد البايتات المرسلة من الرسالة في I<msg_hdr> (أي "
167 "نفس قيمة الإرجاع من استدعاء B<sendmsg>(2) واحد)."
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "The I<flags> argument contains flags ORed together. The flags are the same "
174 "as for B<sendmsg>(2)."
175 msgstr ""
176 "الوسيط I<flags> يحتوي على أعلام مدمجة بعملية OR. الأعلام هي نفسها المستخدمة "
177 "في B<sendmsg>(2)."
178
179 #. type: Plain text
180 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
181 #: opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "A blocking B<sendmmsg>() call blocks until I<n> messages have been sent. A "
184 "nonblocking call sends as many messages as possible (up to the limit "
185 "specified by I<n>) and returns immediately."
186 msgstr ""
187 "استدعاء B<sendmmsg>() المحظور يظل محظورًا حتى يتم إرسال I<n> رسالة. "
188 "الاستدعاء غير المحظور يرسل أكبر عدد ممكن من الرسائل (حتى الحد المحدد بواسطة "
189 "I<n>) ويعود فورًا."
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "On return from B<sendmmsg>(), the I<msg_len> fields of successive elements "
196 "of I<msgvec> are updated to contain the number of bytes transmitted from the "
197 "corresponding I<msg_hdr>. The return value of the call indicates the number "
198 "of elements of I<msgvec> that have been updated."
199 msgstr ""
200 "عند العودة من B<sendmmsg>()، يتم تحديث حقول I<msg_len> للعناصر المتتالية من "
201 "I<msgvec> لتحتوي على عدد البايتات المرسلة من I<msg_hdr> المقابل. تشير قيمة "
202 "إرجاع الاستدعاء إلى عدد عناصر I<msgvec> التي تم تحديثها."
203
204 #. type: SH
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "RETURN VALUE"
209 msgstr "قيمة الإرجاع"
210
211 #. type: Plain text
212 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
213 #: opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "On success, B<sendmmsg>() returns the number of messages sent from "
216 "I<msgvec>; if this is less than I<n>, the caller can retry with a further "
217 "B<sendmmsg>() call to send the remaining messages."
218 msgstr ""
219 "عند النجاح، يُرجع B<sendmmsg>() عدد الرسائل المرسلة من I<msgvec>؛ إذا كان "
220 "هذا أقل من I<n>، يمكن للمستدعي إعادة المحاولة باستدعاء B<sendmmsg>() آخر "
221 "لإرسال الرسائل المتبقية."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
227 msgstr "عند الخطأ، تُعاد القيمة -1، ويُضبط I<errno> للإشارة إلى الخطأ."
228
229 #. type: SH
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "ERRORS"
234 msgstr "الأخطاء"
235
236 #. #-#-#-#-# archlinux: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
237 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
238 #. ...only return an error if no datagrams could be sent.
239 #. If less than the requested number of messages were sent, the application
240 #. must retry starting at the first failed one and if the problem is
241 #. persistent the error will be returned.
242 #. This matches the behavior of other syscalls like read/write - it
243 #. is not an error if less than the requested number of elements are sent.
244 #. type: Plain text
245 #. #-#-#-#-# debian-trixie: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
246 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
247 #. ... only return an error if no datagrams could be sent.
248 #. If less than the requested number of messages were sent, the application
249 #. must retry starting at the first failed one and if the problem is
250 #. persistent the error will be returned.
251 #. This matches the behavior of other syscalls like read/write - it
252 #. is not an error if less than the requested number of elements are sent.
253 #. type: Plain text
254 #. #-#-#-#-# debian-unstable: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
255 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
256 #. ...only return an error if no datagrams could be sent.
257 #. If less than the requested number of messages were sent, the application
258 #. must retry starting at the first failed one and if the problem is
259 #. persistent the error will be returned.
260 #. This matches the behavior of other syscalls like read/write - it
261 #. is not an error if less than the requested number of elements are sent.
262 #. type: Plain text
263 #. #-#-#-#-# fedora-44: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
264 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
265 #. ... only return an error if no datagrams could be sent.
266 #. If less than the requested number of messages were sent, the application
267 #. must retry starting at the first failed one and if the problem is
268 #. persistent the error will be returned.
269 #. This matches the behavior of other syscalls like read/write - it
270 #. is not an error if less than the requested number of elements are sent.
271 #. type: Plain text
272 #. #-#-#-#-# fedora-rawhide: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
273 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
274 #. ... only return an error if no datagrams could be sent.
275 #. If less than the requested number of messages were sent, the application
276 #. must retry starting at the first failed one and if the problem is
277 #. persistent the error will be returned.
278 #. This matches the behavior of other syscalls like read/write - it
279 #. is not an error if less than the requested number of elements are sent.
280 #. type: Plain text
281 #. #-#-#-#-# mageia-cauldron: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
282 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
283 #. ...only return an error if no datagrams could be sent.
284 #. If less than the requested number of messages were sent, the application
285 #. must retry starting at the first failed one and if the problem is
286 #. persistent the error will be returned.
287 #. This matches the behavior of other syscalls like read/write - it
288 #. is not an error if less than the requested number of elements are sent.
289 #. type: Plain text
290 #. #-#-#-#-# opensuse-leap-16-1: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
291 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
292 #. ...only return an error if no datagrams could be sent.
293 #. If less than the requested number of messages were sent, the application
294 #. must retry starting at the first failed one and if the problem is
295 #. persistent the error will be returned.
296 #. This matches the behavior of other syscalls like read/write - it
297 #. is not an error if less than the requested number of elements are sent.
298 #. type: Plain text
299 #. #-#-#-#-# opensuse-tumbleweed: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
300 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
301 #. ...only return an error if no datagrams could be sent.
302 #. If less than the requested number of messages were sent, the application
303 #. must retry starting at the first failed one and if the problem is
304 #. persistent the error will be returned.
305 #. This matches the behavior of other syscalls like read/write - it
306 #. is not an error if less than the requested number of elements are sent.
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "Errors are as for B<sendmsg>(2). An error is returned only if no datagrams "
312 "could be sent. See also BUGS."
313 msgstr ""
314 "الأخطاء هي نفسها لـ B<sendmsg>(2). يتم إرجاع خطأ فقط إذا لم يمكن إرسال أي "
315 "رزم بيانات. انظر أيضًا الأخطاء."
316
317 #. type: SH
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "STANDARDS"
322 msgstr "المعايير"
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "Linux."
328 msgstr "لينكس."
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "HISTORY"
335 msgstr "التاريخ"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "Linux 3.0, glibc 2.14."
341 msgstr "لينكس 3.0، glibc 2.14."
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "NOTES"
348 msgstr "ملاحظات"
349
350 #. commit 98382f419f32d2c12d021943b87dea555677144b
351 #. net: Cap number of elements for sendmmsg
352 #. To limit the amount of time we can spend in sendmmsg, cap the
353 #. number of elements to UIO_MAXIOV (currently 1024).
354 #. For error handling an application using sendmmsg needs to retry at
355 #. the first unsent message, so capping is simpler and requires less
356 #. application logic than returning EINVAL.
357 #. type: Plain text
358 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
359 #: opensuse-leap-16-1 opensuse-tumbleweed
360 msgid "The value specified in I<n> is capped to B<UIO_MAXIOV> (1024)."
361 msgstr "القيمة المحددة في I<n> محدودة بـ B<UIO_MAXIOV> (1024)."
362
363 #. type: SH
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "BUGS"
368 msgstr "العلل"
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "If an error occurs after at least one message has been sent, the call "
375 "succeeds, and returns the number of messages sent. The error code is lost. "
376 "The caller can retry the transmission, starting at the first failed message, "
377 "but there is no guarantee that, if an error is returned, it will be the same "
378 "as the one that was lost on the previous call."
379 msgstr ""
380 "إذا حدث خطأ بعد إرسال رسالة واحدة على الأقل، ينجح الاستدعاء، ويعيد عدد "
381 "الرسائل المرسلة. يُفقد رمز الخطأ. يمكن للمستدعي إعادة محاولة الإرسال، بدءًا "
382 "من أول رسالة فاشلة، ولكن لا يوجد ضمان بأنه، إذا تم إرجاع خطأ، سيكون هو نفسه "
383 "الذي فُقد في الاستدعاء السابق."
384
385 #. type: SH
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "EXAMPLES"
390 msgstr "أمثلة"
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "The example below uses B<sendmmsg>() to send I<onetwo> and I<three> in two "
397 "distinct UDP datagrams using one system call. The contents of the first "
398 "datagram originates from a pair of buffers."
399 msgstr ""
400 "المثال أدناه يستخدم B<sendmmsg>() لإرسال I<onetwo> و I<three> في رزمتي UDP "
401 "منفصلتين باستخدام استدعاء نظام واحد. محتويات أول رزمة تأتي من زوج من "
402 "المخازن المؤقتة."
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid ""
409 "#define _GNU_SOURCE\n"
410 "#include E<lt>arpa/inet.hE<gt>\n"
411 "#include E<lt>netinet/in.hE<gt>\n"
412 "#include E<lt>stdio.hE<gt>\n"
413 "#include E<lt>stdlib.hE<gt>\n"
414 "#include E<lt>string.hE<gt>\n"
415 "#include E<lt>sys/socket.hE<gt>\n"
416 "#include E<lt>sys/types.hE<gt>\n"
417 "\\&\n"
418 "int\n"
419 "main(void)\n"
420 "{\n"
421 " int retval;\n"
422 " int sockfd;\n"
423 " struct iovec msg1[2], msg2;\n"
424 " struct mmsghdr msg[2];\n"
425 " struct sockaddr_in addr;\n"
426 "\\&\n"
427 " sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n"
428 " if (sockfd == -1) {\n"
429 " perror(\"socket()\");\n"
430 " exit(EXIT_FAILURE);\n"
431 " }\n"
432 "\\&\n"
433 " addr.sin_family = AF_INET;\n"
434 " addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n"
435 " addr.sin_port = htons(1234);\n"
436 " if (connect(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {\n"
437 " perror(\"connect()\");\n"
438 " exit(EXIT_FAILURE);\n"
439 " }\n"
440 "\\&\n"
441 " memset(msg1, 0, sizeof(msg1));\n"
442 " msg1[0].iov_base = \"one\";\n"
443 " msg1[0].iov_len = 3;\n"
444 " msg1[1].iov_base = \"two\";\n"
445 " msg1[1].iov_len = 3;\n"
446 "\\&\n"
447 " memset(&msg2, 0, sizeof(msg2));\n"
448 " msg2.iov_base = \"three\";\n"
449 " msg2.iov_len = 5;\n"
450 "\\&\n"
451 " memset(msg, 0, sizeof(msg));\n"
452 " msg[0].msg_hdr.msg_iov = msg1;\n"
453 " msg[0].msg_hdr.msg_iovlen = 2;\n"
454 "\\&\n"
455 " msg[1].msg_hdr.msg_iov = &msg2;\n"
456 " msg[1].msg_hdr.msg_iovlen = 1;\n"
457 "\\&\n"
458 " retval = sendmmsg(sockfd, msg, 2, 0);\n"
459 " if (retval == -1)\n"
460 " perror(\"sendmmsg()\");\n"
461 " else\n"
462 " printf(\"%d messages sent\\[rs]n\", retval);\n"
463 "\\&\n"
464 " exit(0);\n"
465 "}\n"
466 msgstr ""
467 "#define _GNU_SOURCE\n"
468 "#include E<lt>arpa/inet.hE<gt>\n"
469 "#include E<lt>netinet/in.hE<gt>\n"
470 "#include E<lt>stdio.hE<gt>\n"
471 "#include E<lt>stdlib.hE<gt>\n"
472 "#include E<lt>string.hE<gt>\n"
473 "#include E<lt>sys/socket.hE<gt>\n"
474 "#include E<lt>sys/types.hE<gt>\n"
475 "\\&\n"
476 "int\n"
477 "main(void)\n"
478 "{\n"
479 " int retval;\n"
480 " int sockfd;\n"
481 " struct iovec msg1[2], msg2;\n"
482 " struct mmsghdr msg[2];\n"
483 " struct sockaddr_in addr;\n"
484 "\\&\n"
485 " sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n"
486 " if (sockfd == -1) {\n"
487 " perror(\"socket()\");\n"
488 " exit(EXIT_FAILURE);\n"
489 " }\n"
490 "\\&\n"
491 " addr.sin_family = AF_INET;\n"
492 " addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n"
493 " addr.sin_port = htons(1234);\n"
494 " if (connect(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {\n"
495 " perror(\"connect()\");\n"
496 " exit(EXIT_FAILURE);\n"
497 " }\n"
498 "\\&\n"
499 " memset(msg1, 0, sizeof(msg1));\n"
500 " msg1[0].iov_base = \"one\";\n"
501 " msg1[0].iov_len = 3;\n"
502 " msg1[1].iov_base = \"two\";\n"
503 " msg1[1].iov_len = 3;\n"
504 "\\&\n"
505 " memset(&msg2, 0, sizeof(msg2));\n"
506 " msg2.iov_base = \"three\";\n"
507 " msg2.iov_len = 5;\n"
508 "\\&\n"
509 " memset(msg, 0, sizeof(msg));\n"
510 " msg[0].msg_hdr.msg_iov = msg1;\n"
511 " msg[0].msg_hdr.msg_iovlen = 2;\n"
512 "\\&\n"
513 " msg[1].msg_hdr.msg_iov = &msg2;\n"
514 " msg[1].msg_hdr.msg_iovlen = 1;\n"
515 "\\&\n"
516 " retval = sendmmsg(sockfd, msg, 2, 0);\n"
517 " if (retval == -1)\n"
518 " perror(\"sendmmsg()\");\n"
519 " else\n"
520 " printf(\"%d messages sent\\[rs]n\", retval);\n"
521 "\\&\n"
522 " exit(0);\n"
523 "}\n"
524
525 #. SRC END
526 #. type: SH
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid "SEE ALSO"
531 msgstr "انظر أيضًا"
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid "B<recvmmsg>(2), B<sendmsg>(2), B<socket>(2), B<socket>(7)"
537 msgstr "B<recvmmsg>(2), B<sendmsg>(2), B<socket>(2), B<socket>(7)"
538
539 #. type: TH
540 #: debian-trixie
541 #, no-wrap
542 msgid "2024-06-15"
543 msgstr "15 يونيو 2024"
544
545 #. type: TH
546 #: debian-trixie
547 #, no-wrap
548 msgid "Linux man-pages 6.9.1"
549 msgstr "صفحات دليل لينكس 6.9.1"
550
551 #. type: Plain text
552 #: debian-trixie
553 msgid "Standard C library (I<libc>, I<-lc>)"
554 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
555
556 #. type: Plain text
557 #: debian-trixie
558 #, no-wrap
559 msgid ""
560 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
561 "B< int >I<flags>B<);>\n"
562 msgstr ""
563 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
564 "B< int >I<flags>B<);>\n"
565
566 #. type: Plain text
567 #: debian-trixie
568 msgid ""
569 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
570 "The size of this array is specified in I<vlen>."
571 msgstr ""
572 "المعامل I<msgvec> هو مؤشر لمصفوفة من هياكل I<mmsghdr>. حُدد حجم هذه المصفوفة "
573 "في I<vlen>."
574
575 #. type: Plain text
576 #: debian-trixie
577 msgid ""
578 "A blocking B<sendmmsg>() call blocks until I<vlen> messages have been "
579 "sent. A nonblocking call sends as many messages as possible (up to the "
580 "limit specified by I<vlen>) and returns immediately."
581 msgstr ""
582 "استدعاء B<sendmmsg>() المحظور يظل محظورًا حتى يتم إرسال I<vlen> رسالة. "
583 "الاستدعاء غير المحظور يرسل أكبر عدد ممكن من الرسائل (حتى الحد المحدد بواسطة "
584 "I<vlen>) ويعود فورًا."
585
586 #. type: Plain text
587 #: debian-trixie
588 msgid ""
589 "On success, B<sendmmsg>() returns the number of messages sent from "
590 "I<msgvec>; if this is less than I<vlen>, the caller can retry with a further "
591 "B<sendmmsg>() call to send the remaining messages."
592 msgstr ""
593 "عند النجاح، يُرجع B<sendmmsg>() عدد الرسائل المرسلة من I<msgvec>؛ إذا كان "
594 "هذا أقل من I<vlen>، يمكن للمستدعي إعادة المحاولة باستدعاء B<sendmmsg>() آخر "
595 "لإرسال الرسائل المتبقية."
596
597 #. commit 98382f419f32d2c12d021943b87dea555677144b
598 #. net: Cap number of elements for sendmmsg
599 #. To limit the amount of time we can spend in sendmmsg, cap the
600 #. number of elements to UIO_MAXIOV (currently 1024).
601 #. For error handling an application using sendmmsg needs to retry at
602 #. the first unsent message, so capping is simpler and requires less
603 #. application logic than returning EINVAL.
604 #. type: Plain text
605 #: debian-trixie
606 msgid "The value specified in I<vlen> is capped to B<UIO_MAXIOV> (1024)."
607 msgstr "القيمة المحددة في I<vlen> محدودة بـ B<UIO_MAXIOV> (1024)."
608
609 #. type: TH
610 #: fedora-44 fedora-rawhide
611 #, no-wrap
612 msgid "2024-11-17"
613 msgstr "17 نوفمبر 2024"
614
615 #. type: TH
616 #: fedora-44 fedora-rawhide
617 #, no-wrap
618 msgid "Linux man-pages 6.13"
619 msgstr "صفحات دليل لينكس 6.13"
620
621 #. type: Plain text
622 #: fedora-44 fedora-rawhide
623 #, no-wrap
624 msgid ""
625 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
626 "B< int >I<flags>B<);>\n"
627 msgstr ""
628 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
629 "B< int >I<flags>B<);>\n"
630
631 #. type: TH
632 #: mageia-cauldron
633 #, no-wrap
634 msgid "Linux man-pages 6.17"
635 msgstr "صفحات دليل لينكس 6.17"
636
637 #. type: TH
638 #: opensuse-leap-16-1 opensuse-tumbleweed
639 #, no-wrap
640 msgid "Linux man-pages (unreleased)"
641 msgstr "صفحات دليل لينكس (لم تصدر بعد)"