Debian Codegraph @

po/ru/man2/sendmmsg.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 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:42+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 "sendmmsg"
33 msgstr "sendmmsg"
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 "sendmmsg - send multiple messages on a socket"
60 msgstr "sendmmsg - отправляет несколько сообщений в сокет"
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 sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
99 #| "B< int >I<flags>B<);>\n"
100 msgid ""
101 "B<int sendmmsg(>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<);>\n"
104 msgstr ""
105 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
106 "B< int >I<flags>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 #. See commit 228e548e602061b08ee8e8966f567c12aa079682
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "The B<sendmmsg>() system call is an extension of B<sendmsg>(2) that allows "
121 "the caller to transmit multiple messages on a socket using a single system "
122 "call. (This has performance benefits for some applications.)"
123 msgstr ""
124 "Системный вызов B<sendmmsg>() является расширенной версией B<sendmsg>(2), "
125 "позволяя вызывающему передавать несколько сообщений из сокета, используя "
126 "только один системный вызов (в некоторых приложениях это позволяет получить "
127 "выигрыш в производительности)."
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "The I<sockfd> argument is the file descriptor of the socket on which data is "
134 "to be transmitted."
135 msgstr ""
136 "Аргумент I<sockfd> представляет собой файловый дескриптор сокета для "
137 "отправки данных."
138
139 #. type: Plain text
140 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
141 #: opensuse-leap-16-1 opensuse-tumbleweed
142 #, fuzzy
143 #| msgid ""
144 #| "The I<msgvec> argument is a pointer to an array of I<mmsghdr> "
145 #| "structures. The size of this array is specified in I<vlen>."
146 msgid ""
147 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
148 "The size of this array is specified in I<n>."
149 msgstr ""
150 "Аргумент I<msgvec> является указателем на массив структур I<mmsghdr>. Размер "
151 "этого массива указывается в I<vlen>."
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid "The I<mmsghdr> structure is defined in I<E<lt>sys/socket.hE<gt>> as:"
157 msgstr ""
158 "Структура I<mmsghdr> определена в I<E<lt>sys/socket.hE<gt>> следующим "
159 "образом:"
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid ""
166 "struct mmsghdr {\n"
167 " struct msghdr msg_hdr; /* Message header */\n"
168 " unsigned int msg_len; /* Number of bytes transmitted */\n"
169 "};\n"
170 msgstr ""
171 "struct mmsghdr {\n"
172 " struct msghdr msg_hdr; /* заголовок сообщения */\n"
173 " unsigned int msg_len; /* кол-во переданных байт */\n"
174 "};\n"
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<msg_hdr> field is a I<msghdr> structure, as described in "
181 "B<sendmsg>(2). The I<msg_len> field is used to return the number of bytes "
182 "sent from the message in I<msg_hdr> (i.e., the same as the return value from "
183 "a single B<sendmsg>(2) call)."
184 msgstr ""
185 "Поле I<msg_hdr> представляет собой структуру I<msghdr>, которая описана в "
186 "B<sendmsg>(2). Поле I<msg_len> используется для возврата количества байт, "
187 "посланных из сообщения в I<msg_hdr> (т. е., такое же значение, что и "
188 "возвращаемое значение одиночного вызова B<sendmsg>(2))."
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "The I<flags> argument contains flags ORed together. The flags are the same "
195 "as for B<sendmsg>(2)."
196 msgstr ""
197 "Аргумент I<flags> содержит объединённые с помощью OR флаги. Флаги те же, что "
198 "и у B<sendmsg>(2)."
199
200 #. type: Plain text
201 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
202 #: opensuse-leap-16-1 opensuse-tumbleweed
203 #, fuzzy
204 #| msgid ""
205 #| "A blocking B<sendmmsg>() call blocks until I<vlen> messages have been "
206 #| "sent. A nonblocking call sends as many messages as possible (up to the "
207 #| "limit specified by I<vlen>) and returns immediately."
208 msgid ""
209 "A blocking B<sendmmsg>() call blocks until I<n> messages have been sent. A "
210 "nonblocking call sends as many messages as possible (up to the limit "
211 "specified by I<n>) and returns immediately."
212 msgstr ""
213 "Блокирование вызова B<sendmmsg>() происходит до тех пор, пока не будет "
214 "отправлено I<vlen> сообщений. Неблокирующий вызов посылает столько сообщений "
215 "сколько возможно (максимальное количество указано в I<vlen>) и сразу "
216 "завершает работу."
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "On return from B<sendmmsg>(), the I<msg_len> fields of successive elements "
223 "of I<msgvec> are updated to contain the number of bytes transmitted from the "
224 "corresponding I<msg_hdr>. The return value of the call indicates the number "
225 "of elements of I<msgvec> that have been updated."
226 msgstr ""
227 "При возврате из B<sendmmsg>(), поля I<msg_len> последующих элементов "
228 "I<msgvec> обновляются и содержат количество байт, переданных из "
229 "соответствующего I<msg_hdr>. Возвращаемое вызовом значение равно количеству "
230 "элементов I<msgvec>, которые были обновлены."
231
232 #. type: SH
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "RETURN VALUE"
237 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
238
239 #. type: Plain text
240 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
241 #: opensuse-leap-16-1 opensuse-tumbleweed
242 #, fuzzy
243 #| msgid ""
244 #| "On success, B<sendmmsg>() returns the number of messages sent from "
245 #| "I<msgvec>; if this is less than I<vlen>, the caller can retry with a "
246 #| "further B<sendmmsg>() call to send the remaining messages."
247 msgid ""
248 "On success, B<sendmmsg>() returns the number of messages sent from "
249 "I<msgvec>; if this is less than I<n>, the caller can retry with a further "
250 "B<sendmmsg>() call to send the remaining messages."
251 msgstr ""
252 "При успешном выполнении B<sendmmsg>() возвращает количество сообщений, "
253 "посланных из I<msgvec>; если это значение меньше чем I<vlen>, то вызывающий "
254 "может повторить вызов B<sendmmsg>() для отправки оставшихся сообщений."
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
260 msgstr ""
261 "В случае ошибки возвращается -1, а I<errno> устанавливается в значение "
262 "ошибки."
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 "ERRORS"
269 msgstr "ОШИБКИ"
270
271 #. #-#-#-#-# archlinux: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
272 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
273 #. ...only return an error if no datagrams could be sent.
274 #. If less than the requested number of messages were sent, the application
275 #. must retry starting at the first failed one and if the problem is
276 #. persistent the error will be returned.
277 #. This matches the behavior of other syscalls like read/write - it
278 #. is not an error if less than the requested number of elements are sent.
279 #. type: Plain text
280 #. #-#-#-#-# debian-trixie: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
281 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
282 #. ... only return an error if no datagrams could be sent.
283 #. If less than the requested number of messages were sent, the application
284 #. must retry starting at the first failed one and if the problem is
285 #. persistent the error will be returned.
286 #. This matches the behavior of other syscalls like read/write - it
287 #. is not an error if less than the requested number of elements are sent.
288 #. type: Plain text
289 #. #-#-#-#-# debian-unstable: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
290 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
291 #. ...only return an error if no datagrams could be sent.
292 #. If less than the requested number of messages were sent, the application
293 #. must retry starting at the first failed one and if the problem is
294 #. persistent the error will be returned.
295 #. This matches the behavior of other syscalls like read/write - it
296 #. is not an error if less than the requested number of elements are sent.
297 #. type: Plain text
298 #. #-#-#-#-# fedora-44: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
299 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
300 #. ... only return an error if no datagrams could be sent.
301 #. If less than the requested number of messages were sent, the application
302 #. must retry starting at the first failed one and if the problem is
303 #. persistent the error will be returned.
304 #. This matches the behavior of other syscalls like read/write - it
305 #. is not an error if less than the requested number of elements are sent.
306 #. type: Plain text
307 #. #-#-#-#-# fedora-rawhide: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
308 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
309 #. ... only return an error if no datagrams could be sent.
310 #. If less than the requested number of messages were sent, the application
311 #. must retry starting at the first failed one and if the problem is
312 #. persistent the error will be returned.
313 #. This matches the behavior of other syscalls like read/write - it
314 #. is not an error if less than the requested number of elements are sent.
315 #. type: Plain text
316 #. #-#-#-#-# mageia-cauldron: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
317 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
318 #. ...only return an error if no datagrams could be sent.
319 #. If less than the requested number of messages were sent, the application
320 #. must retry starting at the first failed one and if the problem is
321 #. persistent the error will be returned.
322 #. This matches the behavior of other syscalls like read/write - it
323 #. is not an error if less than the requested number of elements are sent.
324 #. type: Plain text
325 #. #-#-#-#-# opensuse-leap-16-1: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
326 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
327 #. ...only return an error if no datagrams could be sent.
328 #. If less than the requested number of messages were sent, the application
329 #. must retry starting at the first failed one and if the problem is
330 #. persistent the error will be returned.
331 #. This matches the behavior of other syscalls like read/write - it
332 #. is not an error if less than the requested number of elements are sent.
333 #. type: Plain text
334 #. #-#-#-#-# opensuse-tumbleweed: sendmmsg.2.pot (PACKAGE VERSION) #-#-#-#-#
335 #. commit 728ffb86f10873aaf4abd26dde691ee40ae731fe
336 #. ...only return an error if no datagrams could be sent.
337 #. If less than the requested number of messages were sent, the application
338 #. must retry starting at the first failed one and if the problem is
339 #. persistent the error will be returned.
340 #. This matches the behavior of other syscalls like read/write - it
341 #. is not an error if less than the requested number of elements are sent.
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "Errors are as for B<sendmsg>(2). An error is returned only if no datagrams "
347 "could be sent. See also BUGS."
348 msgstr ""
349 "Возникают те же ошибки что и для B<sendmsg>(2). Ошибка возвращается только, "
350 "если ни одной дейтаграммы не послано. Смотрите также ДЕФЕКТЫ."
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "STANDARDS"
357 msgstr "СТАНДАРТЫ"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid "Linux."
363 msgstr "Linux."
364
365 #. type: SH
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "HISTORY"
370 msgstr "ИСТОРИЯ"
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid "Linux 3.0, glibc 2.14."
376 msgstr "Linux 3.0, glibc 2.14."
377
378 #. type: SH
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "NOTES"
383 msgstr "ПРИМЕЧАНИЯ"
384
385 #. commit 98382f419f32d2c12d021943b87dea555677144b
386 #. net: Cap number of elements for sendmmsg
387 #. To limit the amount of time we can spend in sendmmsg, cap the
388 #. number of elements to UIO_MAXIOV (currently 1024).
389 #. For error handling an application using sendmmsg needs to retry at
390 #. the first unsent message, so capping is simpler and requires less
391 #. application logic than returning EINVAL.
392 #. type: Plain text
393 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
394 #: opensuse-leap-16-1 opensuse-tumbleweed
395 #, fuzzy
396 #| msgid "The value specified in I<vlen> is capped to B<UIO_MAXIOV> (1024)."
397 msgid "The value specified in I<n> is capped to B<UIO_MAXIOV> (1024)."
398 msgstr "Значение, указанное в I<vlen>, ограничено B<UIO_MAXIOV> (1024)."
399
400 #. type: SH
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid "BUGS"
405 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
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 "If an error occurs after at least one message has been sent, the call "
412 "succeeds, and returns the number of messages sent. The error code is lost. "
413 "The caller can retry the transmission, starting at the first failed message, "
414 "but there is no guarantee that, if an error is returned, it will be the same "
415 "as the one that was lost on the previous call."
416 msgstr ""
417 "Если после отправки хотя бы одного сообщения произошла ошибка, то вызов "
418 "завершается успешно и возвращается количество отправленных сообщений. Код "
419 "ошибки теряется. Вызывающий может повторить передачу, начиная с первого "
420 "ошибочного сообщения, но нет гарантии, что возвращаемый код ошибки будет "
421 "совпадать с потерянным в предыдущем вызове."
422
423 #. type: SH
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "EXAMPLES"
428 msgstr "ПРИМЕРЫ"
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid ""
434 "The example below uses B<sendmmsg>() to send I<onetwo> and I<three> in two "
435 "distinct UDP datagrams using one system call. The contents of the first "
436 "datagram originates from a pair of buffers."
437 msgstr ""
438 "В примере далее B<sendmmsg>() используется для отправки I<onetwo> и I<three> "
439 "в двух разных дейтаграммах UDP за один системный вызов. Содержимое первой "
440 "дейтаграммы составляется из пары буферов."
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid ""
447 "#define _GNU_SOURCE\n"
448 "#include E<lt>arpa/inet.hE<gt>\n"
449 "#include E<lt>netinet/in.hE<gt>\n"
450 "#include E<lt>stdio.hE<gt>\n"
451 "#include E<lt>stdlib.hE<gt>\n"
452 "#include E<lt>string.hE<gt>\n"
453 "#include E<lt>sys/socket.hE<gt>\n"
454 "#include E<lt>sys/types.hE<gt>\n"
455 "\\&\n"
456 "int\n"
457 "main(void)\n"
458 "{\n"
459 " int retval;\n"
460 " int sockfd;\n"
461 " struct iovec msg1[2], msg2;\n"
462 " struct mmsghdr msg[2];\n"
463 " struct sockaddr_in addr;\n"
464 "\\&\n"
465 " sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n"
466 " if (sockfd == -1) {\n"
467 " perror(\"socket()\");\n"
468 " exit(EXIT_FAILURE);\n"
469 " }\n"
470 "\\&\n"
471 " addr.sin_family = AF_INET;\n"
472 " addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n"
473 " addr.sin_port = htons(1234);\n"
474 " if (connect(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {\n"
475 " perror(\"connect()\");\n"
476 " exit(EXIT_FAILURE);\n"
477 " }\n"
478 "\\&\n"
479 " memset(msg1, 0, sizeof(msg1));\n"
480 " msg1[0].iov_base = \"one\";\n"
481 " msg1[0].iov_len = 3;\n"
482 " msg1[1].iov_base = \"two\";\n"
483 " msg1[1].iov_len = 3;\n"
484 "\\&\n"
485 " memset(&msg2, 0, sizeof(msg2));\n"
486 " msg2.iov_base = \"three\";\n"
487 " msg2.iov_len = 5;\n"
488 "\\&\n"
489 " memset(msg, 0, sizeof(msg));\n"
490 " msg[0].msg_hdr.msg_iov = msg1;\n"
491 " msg[0].msg_hdr.msg_iovlen = 2;\n"
492 "\\&\n"
493 " msg[1].msg_hdr.msg_iov = &msg2;\n"
494 " msg[1].msg_hdr.msg_iovlen = 1;\n"
495 "\\&\n"
496 " retval = sendmmsg(sockfd, msg, 2, 0);\n"
497 " if (retval == -1)\n"
498 " perror(\"sendmmsg()\");\n"
499 " else\n"
500 " printf(\"%d messages sent\\[rs]n\", retval);\n"
501 "\\&\n"
502 " exit(0);\n"
503 "}\n"
504 msgstr ""
505
506 #. SRC END
507 #. type: SH
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "SEE ALSO"
512 msgstr "СМОТРИТЕ ТАКЖЕ"
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid "B<recvmmsg>(2), B<sendmsg>(2), B<socket>(2), B<socket>(7)"
518 msgstr "B<recvmmsg>(2), B<sendmsg>(2), B<socket>(2), B<socket>(7)"
519
520 #. type: TH
521 #: debian-trixie
522 #, no-wrap
523 msgid "2024-06-15"
524 msgstr "15 июня 2024 г."
525
526 #. type: TH
527 #: debian-trixie
528 #, no-wrap
529 msgid "Linux man-pages 6.9.1"
530 msgstr "Страницы руководства Linux 6.9.1"
531
532 #. type: Plain text
533 #: debian-trixie
534 msgid "Standard C library (I<libc>, I<-lc>)"
535 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
536
537 #. type: Plain text
538 #: debian-trixie
539 #, no-wrap
540 msgid ""
541 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
542 "B< int >I<flags>B<);>\n"
543 msgstr ""
544 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
545 "B< int >I<flags>B<);>\n"
546
547 #. type: Plain text
548 #: debian-trixie
549 msgid ""
550 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
551 "The size of this array is specified in I<vlen>."
552 msgstr ""
553 "Аргумент I<msgvec> является указателем на массив структур I<mmsghdr>. Размер "
554 "этого массива указывается в I<vlen>."
555
556 #. type: Plain text
557 #: debian-trixie
558 msgid ""
559 "A blocking B<sendmmsg>() call blocks until I<vlen> messages have been "
560 "sent. A nonblocking call sends as many messages as possible (up to the "
561 "limit specified by I<vlen>) and returns immediately."
562 msgstr ""
563 "Блокирование вызова B<sendmmsg>() происходит до тех пор, пока не будет "
564 "отправлено I<vlen> сообщений. Неблокирующий вызов посылает столько сообщений "
565 "сколько возможно (максимальное количество указано в I<vlen>) и сразу "
566 "завершает работу."
567
568 #. type: Plain text
569 #: debian-trixie
570 msgid ""
571 "On success, B<sendmmsg>() returns the number of messages sent from "
572 "I<msgvec>; if this is less than I<vlen>, the caller can retry with a further "
573 "B<sendmmsg>() call to send the remaining messages."
574 msgstr ""
575 "При успешном выполнении B<sendmmsg>() возвращает количество сообщений, "
576 "посланных из I<msgvec>; если это значение меньше чем I<vlen>, то вызывающий "
577 "может повторить вызов B<sendmmsg>() для отправки оставшихся сообщений."
578
579 #. commit 98382f419f32d2c12d021943b87dea555677144b
580 #. net: Cap number of elements for sendmmsg
581 #. To limit the amount of time we can spend in sendmmsg, cap the
582 #. number of elements to UIO_MAXIOV (currently 1024).
583 #. For error handling an application using sendmmsg needs to retry at
584 #. the first unsent message, so capping is simpler and requires less
585 #. application logic than returning EINVAL.
586 #. type: Plain text
587 #: debian-trixie
588 msgid "The value specified in I<vlen> is capped to B<UIO_MAXIOV> (1024)."
589 msgstr "Значение, указанное в I<vlen>, ограничено B<UIO_MAXIOV> (1024)."
590
591 #. type: TH
592 #: fedora-44 fedora-rawhide
593 #, no-wrap
594 msgid "2024-11-17"
595 msgstr "17 ноября 2024 г."
596
597 #. type: TH
598 #: fedora-44 fedora-rawhide
599 #, no-wrap
600 msgid "Linux man-pages 6.13"
601 msgstr "Страницы руководства Linux 6.13"
602
603 #. type: Plain text
604 #: fedora-44 fedora-rawhide
605 #, fuzzy, no-wrap
606 #| msgid ""
607 #| "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
608 #| "B< int >I<flags>B<);>\n"
609 msgid ""
610 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
611 "B< int >I<flags>B<);>\n"
612 msgstr ""
613 "B<int sendmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
614 "B< int >I<flags>B<);>\n"
615
616 #. type: TH
617 #: mageia-cauldron
618 #, no-wrap
619 msgid "Linux man-pages 6.17"
620 msgstr "Страницы руководства Linux 6.17"
621
622 #. type: TH
623 #: opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid "Linux man-pages (unreleased)"
626 msgstr "Страницы руководства Linux (не выпущены)"