Debian Codegraph @

po/ru/man2/getpeername.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 # Azamat Hackimov <[email protected]>, 2013-2014, 2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Vladislav <[email protected]>, 2015.
7 # Yuri Kozlov <[email protected]>, 2011-2019.
8 # Иван Павлов <[email protected]>, 2017, 2019.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n\n"
12 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
13 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
14 "Last-Translator: Yuri Kozlov <[email protected]>\n"
15 "Language-Team: Russian <[email protected]>\n"
16 "Language: ru\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23 "X-Generator: Lokalize 2.0\n"
24
25 #. type: TH
26 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
27 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "getpeername"
30 msgstr "getpeername"
31
32 #. type: TH
33 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
34 #: opensuse-tumbleweed
35 #, no-wrap
36 msgid "2025-10-29"
37 msgstr "29 октября 2025 г."
38
39 #. type: TH
40 #: archlinux debian-unstable
41 #, fuzzy, no-wrap
42 #| msgid "Linux man-pages 6.17"
43 msgid "Linux man-pages 6.18"
44 msgstr "Справочные страницы Linux 6.17"
45
46 #. type: SH
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 #, no-wrap
50 msgid "NAME"
51 msgstr "НАИМЕНОВАНИЕ"
52
53 #. type: Plain text
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 msgid "getpeername - get name of connected peer socket"
57 msgstr "getpeername - получает имя подключившегося сокета"
58
59 #. type: SH
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid "LIBRARY"
64 msgstr "БИБЛИОТЕКА"
65
66 #. type: Plain text
67 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
68 #: opensuse-leap-16-1 opensuse-tumbleweed
69 msgid "Standard C library (I<libc>,\\ I<-lc>)"
70 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
71
72 #. type: SH
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "SYNOPSIS"
77 msgstr "СИНТАКСИС"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
84 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<int getpeername(int >I<sockfd>B<, struct sockaddr *restrict >I<addr>B<,>\n"
92 "B< socklen_t *restrict >I<addrlen>B<);>\n"
93 msgstr ""
94 "B<int getpeername(int >I<sockfd>B<, struct sockaddr *restrict >I<addr>B<,>\n"
95 "B< socklen_t *restrict >I<addrlen>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 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid ""
108 "B<getpeername>() returns the address of the peer connected to the socket "
109 "I<sockfd>, in the buffer pointed to by I<addr>. The I<addrlen> argument "
110 "should be initialized to indicate the amount of space pointed to by "
111 "I<addr>. On return it contains the actual size of the name returned (in "
112 "bytes). The name is truncated if the buffer provided is too small."
113 msgstr ""
114 "B<getpeername>() возвращает адрес машины, подключившейся к сокету I<sockfd>, "
115 "в буфер, указанный I<addr>. В параметре I<addrlen> должно быть указано, "
116 "сколько места выделено, на которое указывает I<addr>. По возвращении он "
117 "содержит реальный размер памяти, занимаемый возвращаемым именем (в байтах). "
118 "Имя обрезается, если буфер окажется слишком мал."
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "The returned address is truncated if the buffer provided is too small; in "
125 "this case, I<addrlen> will return a value greater than was supplied to the "
126 "call."
127 msgstr ""
128 "Возвращаемый адрес урежется, если предоставленный буфер окажется слишком "
129 "маленьким; в этом случае в I<addrlen> будет возвращено значение большее чем "
130 "было в вызове."
131
132 #. type: SH
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 #, no-wrap
136 msgid "RETURN VALUE"
137 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
144 "to indicate the error."
145 msgstr ""
146 "При успешном выполнении возвращается 0. При ошибке возвращается -1, а в "
147 "I<errno> содержится код ошибки."
148
149 #. type: SH
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "ERRORS"
154 msgstr "ОШИБКИ"
155
156 #. type: TP
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 #, no-wrap
160 msgid "B<EBADF>"
161 msgstr "B<EBADF>"
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 msgid "The argument I<sockfd> is not a valid file descriptor."
167 msgstr "Аргумент I<sockfd> не является допустимым файловым дескриптором."
168
169 #. type: TP
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "B<EFAULT>"
174 msgstr "B<EFAULT>"
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<addr> argument points to memory not in a valid part of the process "
181 "address space."
182 msgstr ""
183 "Аргумент I<addr> указывает на память в недопустимой части адресуемого "
184 "пространства процесса."
185
186 #. type: TP
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "B<EINVAL>"
191 msgstr "B<EINVAL>"
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 "I<addrlen> is invalid (e.g., is negative)."
197 msgstr "Неправильное значение аргумента I<addrlen> (например, отрицательное)."
198
199 #. type: TP
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "B<ENOBUFS>"
204 msgstr "B<ENOBUFS>"
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "Insufficient resources were available in the system to perform the operation."
211 msgstr "Недостаточно ресурсов в системе для выполнения операции."
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "B<ENOTCONN>"
218 msgstr "B<ENOTCONN>"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "The socket is not connected."
224 msgstr "Сокет не подключён."
225
226 #. type: TP
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "B<ENOTSOCK>"
231 msgstr "B<ENOTSOCK>"
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid "The file descriptor I<sockfd> does not refer to a socket."
237 msgstr "Файловый дескриптор I<sockfd> указывает не на каталог."
238
239 #. type: SH
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "STANDARDS"
244 msgstr "СТАНДАРТЫ"
245
246 #. type: Plain text
247 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
248 #: opensuse-tumbleweed
249 msgid "POSIX.1-2024."
250 msgstr "POSIX.1-2024."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "HISTORY"
257 msgstr "ИСТОРИЯ"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid "POSIX.1-2001, SVr4, 4.4BSD (first appeared in 4.2BSD)."
263 msgstr "POSIX.1-2001, SVr4, 4.4BSD (впервые появилось в 4.2BSD)."
264
265 #. type: SH
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "NOTES"
270 msgstr "ПРИМЕЧАНИЯ"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "For stream sockets, once a B<connect>(2) has been performed, either socket "
277 "can call B<getpeername>() to obtain the address of the peer socket. On the "
278 "other hand, datagram sockets are connectionless. Calling B<connect>(2) on "
279 "a datagram socket merely sets the peer address for outgoing datagrams sent "
280 "with B<write>(2) or B<recv>(2). The caller of B<connect>(2) can use "
281 "B<getpeername>() to obtain the peer address that it earlier set for the "
282 "socket. However, the peer socket is unaware of this information, and "
283 "calling B<getpeername>() on the peer socket will return no useful "
284 "information (unless a B<connect>(2) call was also executed on the peer). "
285 "Note also that the receiver of a datagram can obtain the address of the "
286 "sender when using B<recvfrom>(2)."
287 msgstr ""
288 "Для потоковых сокетов после выполнения B<connect>(2) любой сокет может "
289 "вызвать B<getpeername>() для получения адреса соседа (peer). С другой "
290 "стороны, дейтаграмные сокеты не устанавливают соединения. Вызов "
291 "B<connect>(2) для дейтаграмного сокета просто задаст адрес соседа в "
292 "исходящих дейтаграммах, посылаемых с помощью B<write>(2) или B<recv>(2). "
293 "Вызывающий B<connect>(2) может использовать B<getpeername>() для получения "
294 "адреса соседа., который был установлен у сокета ранее. Однако, сокет соседа "
295 "не знает про это и вызов B<getpeername>() для сокета соседа не вернёт "
296 "полезной информации (если сосед также не вызвал B<connect>(2)). Заметим, что "
297 "получатель дейтаграммы может получить адрес отправителя, если использует "
298 "B<recvfrom>(2)."
299
300 #. type: SH
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "SEE ALSO"
305 msgstr "СМОТРИТЕ ТАКЖЕ"
306
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 "B<accept>(2), B<bind>(2), B<getsockname>(2), B<ip>(7), B<socket>(7), "
312 "B<unix>(7)"
313 msgstr ""
314 "B<accept>(2), B<bind>(2), B<getsockname>(2), B<ip>(7), B<socket>(7), "
315 "B<unix>(7)"
316
317 #. type: TH
318 #: debian-trixie
319 #, no-wrap
320 msgid "2024-05-02"
321 msgstr "2 мая 2024 г."
322
323 #. type: TH
324 #: debian-trixie
325 #, no-wrap
326 msgid "Linux man-pages 6.9.1"
327 msgstr "Страницы руководства Linux 6.9.1"
328
329 #. type: Plain text
330 #: debian-trixie
331 msgid "Standard C library (I<libc>, I<-lc>)"
332 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
333
334 #. type: Plain text
335 #: debian-trixie fedora-44 fedora-rawhide
336 msgid "POSIX.1-2008."
337 msgstr "POSIX.1-2008."
338
339 #. type: TH
340 #: fedora-44 fedora-rawhide
341 #, no-wrap
342 msgid "2024-07-23"
343 msgstr "23 июля 2024 г."
344
345 #. type: TH
346 #: fedora-44 fedora-rawhide
347 #, no-wrap
348 msgid "Linux man-pages 6.13"
349 msgstr "Страницы руководства Linux 6.13"
350
351 #. type: TH
352 #: mageia-cauldron
353 #, no-wrap
354 msgid "Linux man-pages 6.17"
355 msgstr "Страницы руководства Linux 6.17"
356
357 #. type: TH
358 #: opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "Linux man-pages (unreleased)"
361 msgstr "Страницы руководства Linux (не выпущены)"