Debian Codegraph @

po/ru/man2/recvmmsg.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # aereiae <[email protected]>, 2014.
5 # Azamat Hackimov <[email protected]>, 2013-2014, 2016.
6 # Dmitriy S. Seregin <[email protected]>, 2013.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Lockal <[email protected]>, 2013.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Баринов Владимир, 2016.
11 # Иван Павлов <[email protected]>, 2017,2019.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "recvmmsg"
33 msgstr "recvmmsg"
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-08"
40 msgstr "8 февраля 2026 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 msgid "recvmmsg - receive multiple messages on a socket"
60 msgstr "recvmmsg - получает несколько сообщений из сокета"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "СИНТАКСИС"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
88 "B<#include E<lt>sys/socket.hE<gt>>\n"
89 msgstr ""
90 "B<#define _GNU_SOURCE> /* Смотрите feature_test_macros(7) */\n"
91 "B<#include E<lt>sys/socket.hE<gt>>\n"
92
93 #. type: Plain text
94 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
95 #: opensuse-tumbleweed
96 #, fuzzy, no-wrap
97 #| msgid ""
98 #| "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
99 #| "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
100 msgid ""
101 "B<int recvmmsg(>unsigned int n;\n"
102 "B< int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[>I<n>B<], unsigned int >I<n>B<,>\n"
103 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
104 msgstr ""
105 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
106 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
107
108 #. type: SH
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, no-wrap
112 msgid "DESCRIPTION"
113 msgstr "ОПИСАНИЕ"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "The B<recvmmsg>() system call is an extension of B<recvmsg>(2) that allows "
120 "the caller to receive multiple messages from a socket using a single system "
121 "call. (This has performance benefits for some applications.) A further "
122 "extension over B<recvmsg>(2) is support for a timeout on the receive "
123 "operation."
124 msgstr ""
125 "Системный вызов B<recvmmsg>() является расширенной версией B<recvmsg>(2), "
126 "позволяя вызывающему получать несколько сообщений из сокета, используя "
127 "только один системный вызов (в некоторых приложениях это позволяет получить "
128 "выигрыш в производительности). Ещё одно улучшение B<recvmsg>(2) — настройка "
129 "времени ожидания для операции получения."
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid ""
135 "The I<sockfd> argument is the file descriptor of the socket to receive data "
136 "from."
137 msgstr ""
138 "Аргумент I<sockfd> представляет собой файловый дескриптор сокета приёма "
139 "данных."
140
141 #. type: Plain text
142 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
143 #: opensuse-leap-16-1 opensuse-tumbleweed
144 #, fuzzy
145 #| msgid ""
146 #| "The I<msgvec> argument is a pointer to an array of I<mmsghdr> "
147 #| "structures. The size of this array is specified in I<vlen>."
148 msgid ""
149 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
150 "The size of this array is specified in I<n>."
151 msgstr ""
152 "Аргумент I<msgvec> является указателем на массив структур I<mmsghdr>. Размер "
153 "этого массива указывается в I<vlen>."
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid "The I<mmsghdr> structure is defined in I<E<lt>sys/socket.hE<gt>> as:"
159 msgstr ""
160 "Структура I<mmsghdr> определена в I<E<lt>sys/socket.hE<gt>> следующим "
161 "образом:"
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid ""
168 "struct mmsghdr {\n"
169 " struct msghdr msg_hdr; /* Message header */\n"
170 " unsigned int msg_len; /* Number of received bytes for header */\n"
171 "};\n"
172 msgstr ""
173 "struct mmsghdr {\n"
174 " struct msghdr msg_hdr; /* Заголовок сообщения */\n"
175 " unsigned int msg_len; /* Количество полученных байт\n"
176 " для заголовка */\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 "Поле I<msg_hdr> представляет собой структуру I<msghdr>, которая описана в "
189 "B<recvmsg>(2). В поле I<msg_len> содержится количество байт возвращаемого "
190 "сообщения в записи. Это поле имеет такое же значение, что и возвращаемое "
191 "значение одиночного вызова B<recvmsg>(2) в заголовке."
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 "Аргумент I<flags> содержит объединённые с помощью OR флаги. Флаги те же, что "
201 "и у B<recvmsg>(2), но со следующим дополнением:"
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> (начиная с 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 "Включить B<MSG_DONTWAIT> после получения первого сообщения."
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 "Аргумент I<timeout> указывает на I<struct timespec> (смотрите "
228 "B<clock_gettime>(2)), задающую время ожидания (в секундах и наносекундах) "
229 "операции приёма (I<но смотрите ДЕФЕКТЫ!>; (этот интервал будет округлён до "
230 "точности системных часов, и из-за задержек планировщика ядра интервал "
231 "блокировки может быть немного больше). Если I<timeout> равно NULL, то "
232 "операция блокируется на неопределённое время."
233
234 #. type: Plain text
235 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
236 #: opensuse-leap-16-1 opensuse-tumbleweed
237 #, fuzzy
238 #| msgid ""
239 #| "A blocking B<recvmmsg>() call blocks until I<vlen> messages have been "
240 #| "received or until the timeout expires. A nonblocking call reads as many "
241 #| "messages as are available (up to the limit specified by I<vlen>) and "
242 #| "returns immediately."
243 msgid ""
244 "A blocking B<recvmmsg>() call blocks until I<n> messages have been received "
245 "or until the timeout expires. A nonblocking call reads as many messages as "
246 "are available (up to the limit specified by I<n>) and returns immediately."
247 msgstr ""
248 "Блокирование вызова B<recvmmsg>() происходит до тех пор, пока не будет "
249 "получено I<vlen> сообщений или не истечёт интервал блокировки. Неблокирующий "
250 "вызов читает все доступные сообщения (максимальное количество указано в "
251 "I<vlen>) и сразу завершает работу."
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "On return from B<recvmmsg>(), successive elements of I<msgvec> are updated "
258 "to contain information about each received message: I<msg_len> contains the "
259 "size of the received message; the subfields of I<msg_hdr> are updated as "
260 "described in B<recvmsg>(2). The return value of the call indicates the "
261 "number of elements of I<msgvec> that have been updated."
262 msgstr ""
263 "При выходе из B<recvmmsg>() последующие элементы I<msgvec> обновляются "
264 "информацией о каждом полученном сообщении: в I<msg_len> содержится размер "
265 "принятого сообщения; подполя I<msg_hdr> обновляются согласно описанию в "
266 "B<recvmsg>(2). Возвращаемое значение вызова означает количество обновлённых "
267 "элементов I<msgvec>."
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "RETURN VALUE"
274 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "On success, B<recvmmsg>() returns the number of messages received in "
281 "I<msgvec>; on error, -1 is returned, and I<errno> is set to indicate the "
282 "error."
283 msgstr ""
284 "При успешном выполнении B<recvmmsg>() возвращает количество принятых в "
285 "I<msgvec> сообщений; при ошибке возвращается -1 и в I<errno> устанавливается "
286 "код ошибки."
287
288 #. type: SH
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "ERRORS"
293 msgstr "ОШИБКИ"
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 "Errors are as for B<recvmsg>(2). In addition, the following error can occur:"
300 msgstr ""
301 "Возникают те же ошибки что и для B<recvmsg>(2). Кроме этого, случается "
302 "следующая ошибка:"
303
304 #. type: TP
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "B<EINVAL>"
309 msgstr "B<EINVAL>"
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 "I<timeout> is invalid."
315 msgstr "Значение I<timeout> неверно."
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid "See also BUGS."
321 msgstr "Также смотрите ДЕФЕКТЫ."
322
323 #. type: SH
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "STANDARDS"
328 msgstr "СТАНДАРТЫ"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid "Linux."
334 msgstr "Linux."
335
336 #. type: SH
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "HISTORY"
341 msgstr "ИСТОРИЯ"
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid "Linux 2.6.33, glibc 2.12."
347 msgstr "Linux 2.6.33, glibc 2.12."
348
349 #. type: SH
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "BUGS"
354 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
355
356 #. FIXME . https://bugzilla.kernel.org/show_bug.cgi?id=75371
357 #. http://thread.gmane.org/gmane.linux.man/5677
358 #. type: Plain text
359 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
360 #: opensuse-leap-16-1 opensuse-tumbleweed
361 #, fuzzy
362 #| msgid ""
363 #| "The I<timeout> argument does not work as intended. The timeout is "
364 #| "checked only after the receipt of each datagram, so that if up to "
365 #| "I<vlen-1> datagrams are received before the timeout expires, but then no "
366 #| "further datagrams are received, the call will block forever."
367 msgid ""
368 "The I<timeout> argument does not work as intended. The timeout is checked "
369 "only after the receipt of each datagram, so that if up to I<n-1> datagrams "
370 "are received before the timeout expires, but then no further datagrams are "
371 "received, the call will block forever."
372 msgstr ""
373 "Аргумент I<timeout> работает не так, как планировалось. Время ожидания "
374 "проверяется только после приёма каждой дейтаграммы, поэтому, если до "
375 "истечения срока будет получено до I<vlen-1> дейтаграмм, но затем дейтаграммы "
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 "If an error occurs after at least one message has been received, the call "
383 "succeeds, and returns the number of messages received. The error code is "
384 "expected to be returned on a subsequent call to B<recvmmsg>(). In the "
385 "current implementation, however, the error code can be overwritten in the "
386 "meantime by an unrelated network event on a socket, for example an incoming "
387 "ICMP packet."
388 msgstr ""
389 "Если ошибка возникает после получения хотя бы одного сообщения, то вызов "
390 "выполняется успешно и возвращается количество полученных сообщений. Код "
391 "ошибки будет возвращён следующим вызовом B<recvmmsg>(). Однако в текущей "
392 "реализации код ошибки может перезаписаться при возникновении в тоже время "
393 "события, не связанного с сетью, например, из-за поступившего пакета ICMP."
394
395 #. type: SH
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "EXAMPLES"
400 msgstr "ПРИМЕРЫ"
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid ""
406 "The following program uses B<recvmmsg>() to receive multiple messages on a "
407 "socket and stores them in multiple buffers. The call returns if all buffers "
408 "are filled or if the timeout specified has expired."
409 msgstr ""
410 "Следующая программа использует B<recvmmsg>() для получения нескольких "
411 "сообщений через сокет и сохранения их в несколько буферов. Вызов завершается "
412 "при заполнении всех буферов, либо по окончании заданного временного "
413 "интервала."
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "The following snippet periodically generates UDP datagrams containing a "
420 "random number:"
421 msgstr ""
422 "Следующий отрывок периодически генерирует датаграммы UDP с произвольным "
423 "номером внутри:"
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid ""
430 "$B< while true; do echo $RANDOM E<gt> /dev/udp/127.0.0.1/1234;>\n"
431 "B<sleep 0.25; done>\n"
432 msgstr ""
433 "$B< while true; do echo $RANDOM E<gt> /dev/udp/127.0.0.1/1234;>\n"
434 "B<sleep 0.25; done>\n"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid ""
440 "These datagrams are read by the example application, which can give the "
441 "following output:"
442 msgstr "Эти датаграммы читаются примером приложения, который выдаёт:"
443
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid ""
449 "$B< ./a.out>\n"
450 "5 messages received\n"
451 "1 11782\n"
452 "2 11345\n"
453 "3 304\n"
454 "4 13514\n"
455 "5 28421\n"
456 msgstr ""
457 "$B< ./a.out>\n"
458 "5 сообщений получено\n"
459 "1 11782\n"
460 "2 11345\n"
461 "3 304\n"
462 "4 13514\n"
463 "5 28421\n"
464
465 #. type: SS
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "Program source"
470 msgstr "Исходный код программы"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid ""
477 "#define _GNU_SOURCE\n"
478 "#include E<lt>arpa/inet.hE<gt>\n"
479 "#include E<lt>netinet/in.hE<gt>\n"
480 "#include E<lt>stdio.hE<gt>\n"
481 "#include E<lt>stdlib.hE<gt>\n"
482 "#include E<lt>string.hE<gt>\n"
483 "#include E<lt>sys/socket.hE<gt>\n"
484 "#include E<lt>time.hE<gt>\n"
485 "\\&\n"
486 "int\n"
487 "main(void)\n"
488 "{\n"
489 "#define VLEN 10\n"
490 "#define BUFSIZE 200\n"
491 "#define TIMEOUT 1\n"
492 " int sockfd, retval;\n"
493 " char bufs[VLEN][BUFSIZE+1];\n"
494 " struct iovec iovecs[VLEN];\n"
495 " struct mmsghdr msgs[VLEN];\n"
496 " struct timespec timeout;\n"
497 " struct sockaddr_in addr;\n"
498 "\\&\n"
499 " sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n"
500 " if (sockfd == -1) {\n"
501 " perror(\"socket()\");\n"
502 " exit(EXIT_FAILURE);\n"
503 " }\n"
504 "\\&\n"
505 " addr.sin_family = AF_INET;\n"
506 " addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n"
507 " addr.sin_port = htons(1234);\n"
508 " if (bind(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {\n"
509 " perror(\"bind()\");\n"
510 " exit(EXIT_FAILURE);\n"
511 " }\n"
512 "\\&\n"
513 " memset(msgs, 0, sizeof(msgs));\n"
514 " for (size_t i = 0; i E<lt> VLEN; i++) {\n"
515 " iovecs[i].iov_base = bufs[i];\n"
516 " iovecs[i].iov_len = BUFSIZE;\n"
517 " msgs[i].msg_hdr.msg_iov = &iovecs[i];\n"
518 " msgs[i].msg_hdr.msg_iovlen = 1;\n"
519 " }\n"
520 "\\&\n"
521 " timeout.tv_sec = TIMEOUT;\n"
522 " timeout.tv_nsec = 0;\n"
523 "\\&\n"
524 " retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout);\n"
525 " if (retval == -1) {\n"
526 " perror(\"recvmmsg()\");\n"
527 " exit(EXIT_FAILURE);\n"
528 " }\n"
529 "\\&\n"
530 " printf(\"%d messages received\\[rs]n\", retval);\n"
531 " for (size_t i = 0; i E<lt> retval; i++) {\n"
532 " bufs[i][msgs[i].msg_len] = 0;\n"
533 " printf(\"%zu %s\", i+1, bufs[i]);\n"
534 " }\n"
535 " exit(EXIT_SUCCESS);\n"
536 "}\n"
537 msgstr ""
538
539 #. SRC END
540 #. type: SH
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, no-wrap
544 msgid "SEE ALSO"
545 msgstr "СМОТРИТЕ ТАКЖЕ"
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 msgid ""
551 "B<clock_gettime>(2), B<recvmsg>(2), B<sendmmsg>(2), B<sendmsg>(2), "
552 "B<socket>(2), B<socket>(7)"
553 msgstr ""
554 "B<clock_gettime>(2), B<recvmsg>(2), B<sendmmsg>(2), B<sendmsg>(2), "
555 "B<socket>(2), B<socket>(7)"
556
557 #. type: TH
558 #: debian-trixie
559 #, no-wrap
560 msgid "2024-06-15"
561 msgstr "15 июня 2024 г."
562
563 #. type: TH
564 #: debian-trixie
565 #, no-wrap
566 msgid "Linux man-pages 6.9.1"
567 msgstr "Страницы руководства Linux 6.9.1"
568
569 #. type: Plain text
570 #: debian-trixie
571 msgid "Standard C library (I<libc>, I<-lc>)"
572 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
573
574 #. type: Plain text
575 #: debian-trixie
576 #, no-wrap
577 msgid ""
578 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
579 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
580 msgstr ""
581 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
582 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
583
584 #. type: Plain text
585 #: debian-trixie
586 msgid ""
587 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
588 "The size of this array is specified in I<vlen>."
589 msgstr ""
590 "Аргумент I<msgvec> является указателем на массив структур I<mmsghdr>. Размер "
591 "этого массива указывается в I<vlen>."
592
593 #. type: Plain text
594 #: debian-trixie
595 msgid ""
596 "A blocking B<recvmmsg>() call blocks until I<vlen> messages have been "
597 "received or until the timeout expires. A nonblocking call reads as many "
598 "messages as are available (up to the limit specified by I<vlen>) and "
599 "returns immediately."
600 msgstr ""
601 "Блокирование вызова B<recvmmsg>() происходит до тех пор, пока не будет "
602 "получено I<vlen> сообщений или не истечёт интервал блокировки. Неблокирующий "
603 "вызов читает все доступные сообщения (максимальное количество указано в "
604 "I<vlen>) и сразу завершает работу."
605
606 #. FIXME . https://bugzilla.kernel.org/show_bug.cgi?id=75371
607 #. http://thread.gmane.org/gmane.linux.man/5677
608 #. type: Plain text
609 #: debian-trixie
610 msgid ""
611 "The I<timeout> argument does not work as intended. The timeout is checked "
612 "only after the receipt of each datagram, so that if up to I<vlen-1> "
613 "datagrams are received before the timeout expires, but then no further "
614 "datagrams are received, the call will block forever."
615 msgstr ""
616 "Аргумент I<timeout> работает не так, как планировалось. Время ожидания "
617 "проверяется только после приёма каждой дейтаграммы, поэтому, если до "
618 "истечения срока будет получено до I<vlen-1> дейтаграмм, но затем дейтаграммы "
619 "не поступят, то вызов заблокируется навсегда."
620
621 #. type: TH
622 #: fedora-44 fedora-rawhide
623 #, no-wrap
624 msgid "2024-11-17"
625 msgstr "17 ноября 2024 г."
626
627 #. type: TH
628 #: fedora-44 fedora-rawhide
629 #, no-wrap
630 msgid "Linux man-pages 6.13"
631 msgstr "Страницы руководства Linux 6.13"
632
633 #. type: Plain text
634 #: fedora-44 fedora-rawhide
635 #, fuzzy, no-wrap
636 #| msgid ""
637 #| "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
638 #| "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
639 msgid ""
640 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
641 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
642 msgstr ""
643 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
644 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
645
646 #. type: TH
647 #: mageia-cauldron
648 #, no-wrap
649 msgid "Linux man-pages 6.17"
650 msgstr "Страницы руководства Linux 6.17"
651
652 #. type: TH
653 #: opensuse-leap-16-1 opensuse-tumbleweed
654 #, no-wrap
655 msgid "Linux man-pages (unreleased)"
656 msgstr "Страницы руководства Linux (не выпущены)"