Debian Codegraph @

po/fr/man2/recvmmsg.2.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999,2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2013.
16 # Denis Barbier <[email protected]>, 2006,2010.
17 # David Prévot <[email protected]>, 2010, 2013, 2014.
18 # Cédric Boutillier <[email protected]>, 2011, 2012, 2013.
19 # Frédéric Hantrais <[email protected]>, 2013, 2014.
20 # Jean-Philippe MENGUAL <[email protected]>, 2021-2024.
21 msgid ""
22 msgstr ""
23 "Project-Id-Version: manpages-l10n 4.21.0\n"
24 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
25 "PO-Revision-Date: 2024-02-25 17:09+0100\n"
26 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
27 "Language-Team: French <[email protected]>\n"
28 "Language: fr\n"
29 "MIME-Version: 1.0\n"
30 "Content-Type: text/plain; charset=UTF-8\n"
31 "Content-Transfer-Encoding: 8bit\n"
32 "Plural-Forms: nplurals=2; plural=n > 1;\n"
33 "X-Generator: Lokalize 22.12.3\n"
34
35 #. type: TH
36 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
37 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
38 #, no-wrap
39 msgid "recvmmsg"
40 msgstr "recvmmsg"
41
42 #. type: TH
43 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
44 #: opensuse-tumbleweed
45 #, no-wrap
46 msgid "2026-02-08"
47 msgstr "8 février 2026"
48
49 #. type: TH
50 #: archlinux debian-unstable
51 #, no-wrap
52 msgid "Linux man-pages 6.18"
53 msgstr "Pages du manuel de Linux 6.18"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "NAME"
60 msgstr "NOM"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "recvmmsg - receive multiple messages on a socket"
66 msgstr "recvmmsg - Recevoir plusieurs message sur un socket"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "LIBRARY"
73 msgstr "BIBLIOTHÈQUE"
74
75 #. type: Plain text
76 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
77 #: opensuse-leap-16-1 opensuse-tumbleweed
78 msgid "Standard C library (I<libc>,\\ I<-lc>)"
79 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
80
81 #. type: SH
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "SYNOPSIS"
86 msgstr "SYNOPSIS"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
94 "B<#include E<lt>sys/socket.hE<gt>>\n"
95 msgstr ""
96 "B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n"
97 "B<#include E<lt>sys/socket.hE<gt>>\n"
98
99 #. type: Plain text
100 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
101 #: opensuse-tumbleweed
102 #, fuzzy, no-wrap
103 #| msgid ""
104 #| "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
105 #| "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
106 msgid ""
107 "B<int recvmmsg(>unsigned int n;\n"
108 "B< int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[>I<n>B<], unsigned int >I<n>B<,>\n"
109 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
110 msgstr ""
111 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
112 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
113
114 #. type: SH
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid "DESCRIPTION"
119 msgstr "DESCRIPTION"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 msgid ""
125 "The B<recvmmsg>() system call is an extension of B<recvmsg>(2) that allows "
126 "the caller to receive multiple messages from a socket using a single system "
127 "call. (This has performance benefits for some applications.) A further "
128 "extension over B<recvmsg>(2) is support for a timeout on the receive "
129 "operation."
130 msgstr ""
131 "L'appel système B<recvmmsg>() est une extension de B<recvmsg>(2) qui permet "
132 "à l'appelant de recevoir plusieurs messages d'un socket en utilisant un seul "
133 "appel système. (Cela améliore les performances pour certaines applications.) "
134 "Une autre propriété de ce cette extension de B<recvmsg>(2) est la gestion "
135 "d'une temporisation pour l'opération de réception."
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "The I<sockfd> argument is the file descriptor of the socket to receive data "
142 "from."
143 msgstr ""
144 "Le paramètre I<sockfd> est le descripteur de fichier de le socket émetteur."
145
146 #. type: Plain text
147 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
148 #: opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
151 "The size of this array is specified in I<n>."
152 msgstr ""
153 "L'argument I<msgvec> est un pointeur vers un tableau de structures "
154 "I<mmsghdr>. La taille de ce tableau est précisée dans I<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 "The I<mmsghdr> structure is defined in I<E<lt>sys/socket.hE<gt>> as:"
160 msgstr ""
161 "La structure I<mmsghdr> est définie dans I<E<lt>sys/socket.hE<gt>> comme "
162 "ceci\\ :"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid ""
169 "struct mmsghdr {\n"
170 " struct msghdr msg_hdr; /* Message header */\n"
171 " unsigned int msg_len; /* Number of received bytes for header */\n"
172 "};\n"
173 msgstr ""
174 "struct mmsghdr {\n"
175 " struct msghdr msg_hdr; /* En-tête du message */\n"
176 " unsigned int msg_len; /* Nombre d'octets reçus pour l'en-tête */\n"
177 "};\n"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "The I<msg_hdr> field is a I<msghdr> structure, as described in "
184 "B<recvmsg>(2). The I<msg_len> field is the number of bytes returned for the "
185 "message in the entry. This field has the same value as the return value of "
186 "a single B<recvmsg>(2) on the header."
187 msgstr ""
188 "Le champ I<msg_hdr> est une structure I<msghdr>, conformément à "
189 "B<recvmsg>(2). Le champ I<msg_len> est le nombre d'octets retourné par le "
190 "message dans l'entrée. Ce champ a la même valeur que la valeur de retour de "
191 "la simple commande B<recvmsg>(2) sur l'en-tête."
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "The I<flags> argument contains flags ORed together. The flags are the same "
198 "as documented for B<recvmsg>(2), with the following addition:"
199 msgstr ""
200 "L'argument I<flags> contient le OU binaire de la collection des attributs. "
201 "Les attributs sont ceux documentés pour B<recvmsg>(2), plus :"
202
203 #. type: TP
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "B<MSG_WAITFORONE> (since Linux 2.6.34)"
208 msgstr "B<MSG_WAITFORONE> (depuis Linux 2.6.34)"
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid "Turns on B<MSG_DONTWAIT> after the first message has been received."
214 msgstr "Activer B<MSG_DONTWAIT> après le premier message reçu."
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "The I<timeout> argument points to a I<struct timespec> (see "
221 "B<clock_gettime>(2)) defining a timeout (seconds plus nanoseconds) for the "
222 "receive operation (I<but see BUGS!>). (This interval will be rounded up to "
223 "the system clock granularity, and kernel scheduling delays mean that the "
224 "blocking interval may overrun by a small amount.) If I<timeout> is NULL, "
225 "then the operation blocks indefinitely."
226 msgstr ""
227 "L'argument I<timeout> est un pointeur vers une I<struct timespec> (consultez "
228 "B<clock_gettime>(2)) définissant la temporisation (en secondes et "
229 "nanosecondes) pour l'opération de réception (mais consultez la section "
230 "BOGUES !). Cet intervalle sera arrondi à la granularité de l'horloge "
231 "système, et peut être légèrement modifié à cause des délais d'ordonnancement "
232 "du noyau. Si I<timeout> est le pointeur nul, l'opération se bloque "
233 "indéfiniment."
234
235 #. type: Plain text
236 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
237 #: opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "A blocking B<recvmmsg>() call blocks until I<n> messages have been received "
240 "or until the timeout expires. A nonblocking call reads as many messages as "
241 "are available (up to the limit specified by I<n>) and returns immediately."
242 msgstr ""
243 "Un appel bloquant B<recvmmsg>() bloque jusqu'à la réception de I<n> messages "
244 "ou l'expiration de la temporisation. Un appel non bloquant lit autant de "
245 "messages que disponibles (jusqu'à la limite indiquée par I<n>) et retourne "
246 "immédiatement."
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "On return from B<recvmmsg>(), successive elements of I<msgvec> are updated "
253 "to contain information about each received message: I<msg_len> contains the "
254 "size of the received message; the subfields of I<msg_hdr> are updated as "
255 "described in B<recvmsg>(2). The return value of the call indicates the "
256 "number of elements of I<msgvec> that have been updated."
257 msgstr ""
258 "Au retour de B<recvmmsg>(), les éléments successifs de I<msgvec> sont mis à "
259 "jour pour contenir l'information concernant chaque message reçu : les champs "
260 "secondaires de I<msg_hdr> sont mis à jour conformément à B<recmsg>(2). La "
261 "valeur de retour de l'appel indique le nombre d'éléments de I<msgvec> mis à "
262 "jour."
263
264 #. type: SH
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "RETURN VALUE"
269 msgstr "VALEUR RENVOYÉE"
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid ""
275 "On success, B<recvmmsg>() returns the number of messages received in "
276 "I<msgvec>; on error, -1 is returned, and I<errno> is set to indicate the "
277 "error."
278 msgstr ""
279 "En cas du succès, B<recvmmsg>() retourne le nombre de messages reçus dans "
280 "I<msgvec> ; Dans le cas contraire, il renvoie -1 et remplit I<errno> avec le "
281 "code d'erreur."
282
283 #. type: SH
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "ERRORS"
288 msgstr "ERREURS"
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "Errors are as for B<recvmsg>(2). In addition, the following error can occur:"
295 msgstr ""
296 "Les erreurs sont les mêmes que pour B<recvmsg>(2), plus l'erreur suivante :"
297
298 #. type: TP
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "B<EINVAL>"
303 msgstr "B<EINVAL>"
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 "I<timeout> is invalid."
309 msgstr "I<timeout> n'est pas valable."
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid "See also BUGS."
315 msgstr "Voir aussi BOGUES."
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 "NORMES"
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 "Linux."
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 "HISTORIQUE"
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 2.6.33, glibc 2.12."
341 msgstr "Linux 2.6.33, glibc 2.12."
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 "BUGS"
348 msgstr "BOGUES"
349
350 #. FIXME . https://bugzilla.kernel.org/show_bug.cgi?id=75371
351 #. http://thread.gmane.org/gmane.linux.man/5677
352 #. type: Plain text
353 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
354 #: opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "The I<timeout> argument does not work as intended. The timeout is checked "
357 "only after the receipt of each datagram, so that if up to I<n-1> datagrams "
358 "are received before the timeout expires, but then no further datagrams are "
359 "received, the call will block forever."
360 msgstr ""
361 "L'argument I<timeout> n'a pas l'effet que l'on pourrait attendre. La non-"
362 "expiration du timeout est vérifiée après la réception de chaque datagramme, "
363 "de sorte que si moins de I<n-1> datagrammes sont reçus avant l'expiration du "
364 "timeout, mais qu'aucun datagramme n'est reçu ensuite, l'appel restera bloqué "
365 "indéfiniment. "
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "If an error occurs after at least one message has been received, the call "
372 "succeeds, and returns the number of messages received. The error code is "
373 "expected to be returned on a subsequent call to B<recvmmsg>(). In the "
374 "current implementation, however, the error code can be overwritten in the "
375 "meantime by an unrelated network event on a socket, for example an incoming "
376 "ICMP packet."
377 msgstr ""
378 "Si une erreur survient après qu'au moins un message ait été reçu, l'appel "
379 "réussit et renvoie le nombre de messages reçus. Le code d'erreur est prévu "
380 "pour être renvoyé lors de l'appel suivant à B<recvmmsg>(). Cependant, dans "
381 "l'implémentation actuelle, le code d'erreur peut être émis en même temps par "
382 "un événement réseau non lié sur un socket, comme un paquet ICMP entrant."
383
384 #. type: SH
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "EXAMPLES"
389 msgstr "EXEMPLES"
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "The following program uses B<recvmmsg>() to receive multiple messages on a "
396 "socket and stores them in multiple buffers. The call returns if all buffers "
397 "are filled or if the timeout specified has expired."
398 msgstr ""
399 "Le programme suivant utilise B<recvmmsg>() pour recevoir plusieurs messages "
400 "sur un socket et les stocker dans plusieurs tampons. L'appel termine si tous "
401 "les tampons sont remplis ou si le délai indiqué est dépassé."
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "The following snippet periodically generates UDP datagrams containing a "
408 "random number:"
409 msgstr ""
410 "Le morceau de code suivant engendre périodiquement des datagrammes UDP "
411 "contenant un nombre aléatoire :"
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid ""
418 "$B< while true; do echo $RANDOM E<gt> /dev/udp/127.0.0.1/1234;>\n"
419 "B<sleep 0.25; done>\n"
420 msgstr ""
421 "$B< while true; do echo $RANDOM E<gt> /dev/udp/127.0.0.1/1234;>\n"
422 "B<sleep 0.25; done>\n"
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 msgid ""
428 "These datagrams are read by the example application, which can give the "
429 "following output:"
430 msgstr ""
431 "Ces datagrammes sont lus par le programme ci-dessous, qui peut par exemple "
432 "afficher la sortie suivante :"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid ""
439 "$B< ./a.out>\n"
440 "5 messages received\n"
441 "1 11782\n"
442 "2 11345\n"
443 "3 304\n"
444 "4 13514\n"
445 "5 28421\n"
446 msgstr ""
447 "$B< ./a.out>\n"
448 "5 messages reçus\n"
449 "1 11782\n"
450 "2 11345\n"
451 "3 304\n"
452 "4 13514\n"
453 "5 28421\n"
454
455 #. type: SS
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "Program source"
460 msgstr "Source du programme"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid ""
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>time.hE<gt>\n"
475 "\\&\n"
476 "int\n"
477 "main(void)\n"
478 "{\n"
479 "#define VLEN 10\n"
480 "#define BUFSIZE 200\n"
481 "#define TIMEOUT 1\n"
482 " int sockfd, retval;\n"
483 " char bufs[VLEN][BUFSIZE+1];\n"
484 " struct iovec iovecs[VLEN];\n"
485 " struct mmsghdr msgs[VLEN];\n"
486 " struct timespec timeout;\n"
487 " struct sockaddr_in addr;\n"
488 "\\&\n"
489 " sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n"
490 " if (sockfd == -1) {\n"
491 " perror(\"socket()\");\n"
492 " exit(EXIT_FAILURE);\n"
493 " }\n"
494 "\\&\n"
495 " addr.sin_family = AF_INET;\n"
496 " addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n"
497 " addr.sin_port = htons(1234);\n"
498 " if (bind(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {\n"
499 " perror(\"bind()\");\n"
500 " exit(EXIT_FAILURE);\n"
501 " }\n"
502 "\\&\n"
503 " memset(msgs, 0, sizeof(msgs));\n"
504 " for (size_t i = 0; i E<lt> VLEN; i++) {\n"
505 " iovecs[i].iov_base = bufs[i];\n"
506 " iovecs[i].iov_len = BUFSIZE;\n"
507 " msgs[i].msg_hdr.msg_iov = &iovecs[i];\n"
508 " msgs[i].msg_hdr.msg_iovlen = 1;\n"
509 " }\n"
510 "\\&\n"
511 " timeout.tv_sec = TIMEOUT;\n"
512 " timeout.tv_nsec = 0;\n"
513 "\\&\n"
514 " retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout);\n"
515 " if (retval == -1) {\n"
516 " perror(\"recvmmsg()\");\n"
517 " exit(EXIT_FAILURE);\n"
518 " }\n"
519 "\\&\n"
520 " printf(\"%d messages received\\[rs]n\", retval);\n"
521 " for (size_t i = 0; i E<lt> retval; i++) {\n"
522 " bufs[i][msgs[i].msg_len] = 0;\n"
523 " printf(\"%zu %s\", i+1, bufs[i]);\n"
524 " }\n"
525 " exit(EXIT_SUCCESS);\n"
526 "}\n"
527 msgstr ""
528 "#define _GNU_SOURCE\n"
529 "#include E<lt>arpa/inet.hE<gt>\n"
530 "#include E<lt>netinet/in.hE<gt>\n"
531 "#include E<lt>stdio.hE<gt>\n"
532 "#include E<lt>stdlib.hE<gt>\n"
533 "#include E<lt>string.hE<gt>\n"
534 "#include E<lt>sys/socket.hE<gt>\n"
535 "#include E<lt>time.hE<gt>\n"
536 "\\&\n"
537 "int\n"
538 "main(void)\n"
539 "{\n"
540 "#define VLEN 10\n"
541 "#define BUFSIZE 200\n"
542 "#define TIMEOUT 1\n"
543 " int sockfd, retval;\n"
544 " char bufs[VLEN][BUFSIZE+1];\n"
545 " struct iovec iovecs[VLEN];\n"
546 " struct mmsghdr msgs[VLEN];\n"
547 " struct timespec timeout;\n"
548 " struct sockaddr_in addr;\n"
549 "\\&\n"
550 " sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n"
551 " if (sockfd == -1) {\n"
552 " perror(\"socket()\");\n"
553 " exit(EXIT_FAILURE);\n"
554 " }\n"
555 "\\&\n"
556 " addr.sin_family = AF_INET;\n"
557 " addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n"
558 " addr.sin_port = htons(1234);\n"
559 " if (bind(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {\n"
560 " perror(\"bind()\");\n"
561 " exit(EXIT_FAILURE);\n"
562 " }\n"
563 "\\&\n"
564 " memset(msgs, 0, sizeof(msgs));\n"
565 " for (size_t i = 0; i E<lt> VLEN; i++) {\n"
566 " iovecs[i].iov_base = bufs[i];\n"
567 " iovecs[i].iov_len = BUFSIZE;\n"
568 " msgs[i].msg_hdr.msg_iov = &iovecs[i];\n"
569 " msgs[i].msg_hdr.msg_iovlen = 1;\n"
570 " }\n"
571 "\\&\n"
572 " timeout.tv_sec = TIMEOUT;\n"
573 " timeout.tv_nsec = 0;\n"
574 "\\&\n"
575 " retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout);\n"
576 " if (retval == -1) {\n"
577 " perror(\"recvmmsg()\");\n"
578 " exit(EXIT_FAILURE);\n"
579 " }\n"
580 "\\&\n"
581 " printf(\"%d messages reçus\\[rs]n\", retval);\n"
582 " for (size_t i = 0; i E<lt> retval; i++) {\n"
583 " bufs[i][msgs[i].msg_len] = 0;\n"
584 " printf(\"%zu %s\", i+1, bufs[i]);\n"
585 " }\n"
586 " exit(EXIT_SUCCESS);\n"
587 "}\n"
588
589 #. SRC END
590 #. type: SH
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid "SEE ALSO"
595 msgstr "VOIR AUSSI"
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid ""
601 "B<clock_gettime>(2), B<recvmsg>(2), B<sendmmsg>(2), B<sendmsg>(2), "
602 "B<socket>(2), B<socket>(7)"
603 msgstr ""
604 "B<clock_gettime>(2), B<recvmsg>(2), B<sendmmsg>(2), B<sendmsg>(2), "
605 "B<socket>(2), B<socket>(7)"
606
607 #. type: TH
608 #: debian-trixie
609 #, no-wrap
610 msgid "2024-06-15"
611 msgstr "15 juin 2024"
612
613 #. type: TH
614 #: debian-trixie
615 #, no-wrap
616 msgid "Linux man-pages 6.9.1"
617 msgstr "Pages du manuel de Linux 6.9.1"
618
619 #. type: Plain text
620 #: debian-trixie
621 msgid "Standard C library (I<libc>, I<-lc>)"
622 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
623
624 #. type: Plain text
625 #: debian-trixie
626 #, no-wrap
627 msgid ""
628 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
629 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
630 msgstr ""
631 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
632 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
633
634 #. type: Plain text
635 #: debian-trixie
636 msgid ""
637 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
638 "The size of this array is specified in I<vlen>."
639 msgstr ""
640 "L'argument I<msgvec> est un pointeur vers un tableau de structures "
641 "I<mmsghdr>. La taille de ce tableau est précisée dans I<vlen>."
642
643 #. type: Plain text
644 #: debian-trixie
645 msgid ""
646 "A blocking B<recvmmsg>() call blocks until I<vlen> messages have been "
647 "received or until the timeout expires. A nonblocking call reads as many "
648 "messages as are available (up to the limit specified by I<vlen>) and "
649 "returns immediately."
650 msgstr ""
651 "Un appel bloquant B<recvmmsg>() bloque jusqu'à la réception de I<vlsen> "
652 "messages ou l'expiration de la temporisation. Un appel non bloquant lit "
653 "autant de messages que disponibles (jusqu'à la limite indiquée par I<vlen>) "
654 "et retourne immédiatement."
655
656 #. FIXME . https://bugzilla.kernel.org/show_bug.cgi?id=75371
657 #. http://thread.gmane.org/gmane.linux.man/5677
658 #. type: Plain text
659 #: debian-trixie
660 msgid ""
661 "The I<timeout> argument does not work as intended. The timeout is checked "
662 "only after the receipt of each datagram, so that if up to I<vlen-1> "
663 "datagrams are received before the timeout expires, but then no further "
664 "datagrams are received, the call will block forever."
665 msgstr ""
666 "L'argument I<timeout> n'a pas l'effet que l'on pourrait attendre. La non-"
667 "expiration du timeout est vérifiée après la réception de chaque datagramme, "
668 "de sorte que si moins de I<vlen-1> datagrammes sont reçus avant l'expiration "
669 "du timeout, mais qu'aucun datagramme n'est reçu ensuite, l'appel restera "
670 "bloqué indéfiniment. "
671
672 #. type: TH
673 #: fedora-44 fedora-rawhide
674 #, no-wrap
675 msgid "2024-11-17"
676 msgstr "17 novembre 2024"
677
678 #. type: TH
679 #: fedora-44 fedora-rawhide
680 #, no-wrap
681 msgid "Linux man-pages 6.13"
682 msgstr "Pages du manuel de Linux 6.13"
683
684 #. type: Plain text
685 #: fedora-44 fedora-rawhide
686 #, no-wrap
687 msgid ""
688 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
689 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
690 msgstr ""
691 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
692 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
693
694 #. type: TH
695 #: mageia-cauldron
696 #, no-wrap
697 msgid "Linux man-pages 6.17"
698 msgstr "Pages du manuel de Linux 6.17"
699
700 #. type: TH
701 #: opensuse-leap-16-1 opensuse-tumbleweed
702 #, no-wrap
703 msgid "Linux man-pages (unreleased)"
704 msgstr "Pages du manuel de Linux (non publiées)"