Debian Codegraph @

po/es/man2/bind.2.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Miguel Angel Sepulveda <[email protected]>, 1995-1996.
5 # Juan Piernas <[email protected]>, 1998-1999.
6 # Marcos Fouces <[email protected]>, 2023-2025.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
11 "PO-Revision-Date: 2025-11-17 18:51+0100\n"
12 "Last-Translator: Marcos Fouces <[email protected]>\n"
13 "Language-Team: Spanish <[email protected]>\n"
14 "Language: es\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "bind"
25 msgstr "bind"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 Febrero 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Páginas de Manual de Linux 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOMBRE"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "bind - bind a name to a socket"
52 msgstr "bind - enlaza un nombre a un conector (socket)"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "SINOPSIS"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
79 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
87 "B< socklen_t >I<addrlen>B<);>\n"
88 msgstr ""
89 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
90 "B< socklen_t >I<addrlen>B<);>\n"
91
92 #. type: SH
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "DESCRIPTION"
97 msgstr "DESCRIPCIÓN"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "When a socket is created with B<socket>(2), it exists in a name space "
104 "(address family) but has no address assigned to it. B<bind>() assigns the "
105 "address specified by I<addr> to the socket referred to by the file "
106 "descriptor I<sockfd>. I<addrlen> specifies the size, in bytes, of the "
107 "address structure pointed to by I<addr>. Traditionally, this operation is "
108 "called \\[lq]assigning a name to a socket\\[rq]."
109 msgstr ""
110 "Cuando se crea un socket con B<socket>(2), existirá en un espacio de nombres "
111 "(familia de direcciones), pero no tiene una dirección asignada. B<bind>() "
112 "asigna la dirección especificada por I<addr> al socket al que hace "
113 "referencia el descriptor de archivo I<sockfd>. I<addrlen> especifica el "
114 "tamaño, en bytes, de la estructura de dirección a la que apunta I<addr>. "
115 "Esta operación se suele llamar \\[lq]asignar un nombre a un socket\\[rq]."
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "It is normally necessary to assign a local address using B<bind>() before a "
122 "B<SOCK_STREAM> socket may receive connections (see B<accept>(2))."
123 msgstr ""
124 "Normalmente, es necesario asignar una dirección local usando B<bind>() a un "
125 "conector B<SOCK_STREAM> antes de que éste pueda recibir conexiones (vea "
126 "B<accept>(2))."
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "The rules used in name binding vary between address families. Consult the "
133 "manual entries in Section 7 for detailed information. For B<AF_INET>, see "
134 "B<ip>(7); for B<AF_INET6>, see B<ipv6>(7); for B<AF_UNIX>, see B<unix>(7); "
135 "for B<AF_APPLETALK>, see B<ddp>(7); for B<AF_PACKET>, see B<packet>(7); for "
136 "B<AF_X25>, see B<x25>(7); and for B<AF_NETLINK>, see B<netlink>(7)."
137 msgstr ""
138 "Las reglas usadas en el enlace de nombres varían entre familias de "
139 "direcciones. Consulte las entradas de manual de la Sección 7 para obtener "
140 "una información más detallada. Para B<AF_INET> vea B<ip>(7), para "
141 "B<AF_INET6> vea B<ipv6>(7), para B<AF_UNIX> vea B<unix>(7), para "
142 "B<AF_APPLETALK> vea B<ddp>(7), para B<AF_PACKET> vea B<packet>(7), para "
143 "B<AF_X25> vea B<x25>(7) y para B<AF_NETLINK> vea B<netlink>(7)."
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "The actual structure passed for the I<addr> argument will depend on the "
150 "address family. The I<sockaddr> structure is defined as something like:"
151 msgstr ""
152 "La estructura real que se pase para el argumento I<addr> dependerá de la "
153 "familia de direcciones. La estructura I<sockaddr> se define de la siguiente "
154 "manera:"
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 #, no-wrap
160 msgid ""
161 "struct sockaddr {\n"
162 " sa_family_t sa_family;\n"
163 " char sa_data[14];\n"
164 "}\n"
165 msgstr ""
166 "struct sockaddr {\n"
167 " sa_family_t sa_family;\n"
168 " char sa_data[14];\n"
169 "}\n"
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "The only purpose of this structure is to cast the structure pointer passed "
176 "in I<addr> in order to avoid compiler warnings. See EXAMPLES below."
177 msgstr ""
178 "El único propósito de esta estructura es convertir el puntero de estructura "
179 "que se pasó en I<addr> para evitar advertencias del compilador. Consulte los "
180 "ejemplos a continuación."
181
182 #. type: SH
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "RETURN VALUE"
187 msgstr "VALOR DEVUELTO"
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
194 "to indicate the error."
195 msgstr ""
196 "En caso de éxito se devuelve cero. En caso de error se devuelve -1, y "
197 "I<errno> se configura para indicar el error."
198
199 #. type: SH
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "ERRORS"
204 msgstr "ERRORES"
205
206 #. type: TP
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 #, no-wrap
210 msgid "B<EACCES>"
211 msgstr "B<EACCES>"
212
213 #. e.g., privileged port in AF_INET domain
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid "The address is protected, and the user is not the superuser."
218 msgstr "La dirección está protegida y el usuario no es el superusuario."
219
220 #. type: TP
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, no-wrap
224 msgid "B<EADDRINUSE>"
225 msgstr "B<EADDRINUSE>"
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid "The given address is already in use."
231 msgstr "La dirección dada ya está en uso."
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 ""
237 "(Internet domain sockets) The port number was specified as zero in the "
238 "socket address structure, but, upon attempting to bind to an ephemeral port, "
239 "it was determined that all port numbers in the ephemeral port range are "
240 "currently in use. See the discussion of I</proc/sys/net/ipv4/"
241 "ip_local_port_range> B<ip>(7)."
242 msgstr ""
243 "(Sockets de dominio de Internet) El número de puerto se definió «0» en la "
244 "estructura de dirección del socket, pero, al intentar vincularlo a un puerto "
245 "efímero, se determinó que todos los números de puerto en el rango de puertos "
246 "efímeros están actualmente en uso. Consulte la explicación de I</proc/sys/"
247 "net/ipv4/ip_local_port_range> B<ip>(7)."
248
249 #. type: TP
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "B<EBADF>"
254 msgstr "B<EBADF>"
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 "I<sockfd> is not a valid file descriptor."
260 msgstr "I<sockfd> no es un descriptor de archivo válido."
261
262 #. type: TP
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "B<EINVAL>"
267 msgstr "B<EINVAL>"
268
269 #. This may change in the future: see
270 #. .I linux/unix/sock.c for details.
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 "The socket is already bound to an address."
275 msgstr "El socket ya está vinculado a una dirección."
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 msgid ""
281 "I<addrlen> is wrong, or I<addr> is not a valid address for this socket's "
282 "domain."
283 msgstr ""
284 "I<addrlen> es incorrecto o I<addr> no es una dirección válida para el "
285 "dominio de este socket."
286
287 #. type: TP
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<ENOTSOCK>"
292 msgstr "B<ENOTSOCK>"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid "The file descriptor I<sockfd> does not refer to a socket."
298 msgstr "El descriptor de archivo I<sockfd> no se refiere a un conector."
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<EADDRNOTAVAIL>"
305 msgstr "B<EADDRNOTAVAIL>"
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 "A nonexistent interface was requested or the requested address was not local."
312 msgstr "Se requirió una interfaz inexistente o una dirección no local."
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid "The following errors are specific to UNIX domain (B<AF_UNIX>) sockets:"
318 msgstr ""
319 "Los siguientes errores son específicos a los conectores del dominio UNIX "
320 "(I<AF_UNIX>):"
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 msgid ""
326 "Search permission is denied on a component of the path prefix. (See also "
327 "B<path_resolution>(7).)"
328 msgstr ""
329 "El permiso de búsqueda ha sido denegado en uno de los componentes de la "
330 "ruta. Consulte B<path_resolution>(7)."
331
332 #. type: TP
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "B<EFAULT>"
337 msgstr "B<EFAULT>"
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid "I<addr> points outside the user's accessible address space."
343 msgstr ""
344 "I<addr> señala fuera del espacio de direcciones accesible por el usuario."
345
346 #. type: TP
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "B<ELOOP>"
351 msgstr "B<ELOOP>"
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid "Too many symbolic links were encountered in resolving I<addr>."
357 msgstr "Se han encontrado demasiados enlaces simbólicos al resolver I<addr>."
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<ENAMETOOLONG>"
364 msgstr "B<ENAMETOOLONG>"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid "I<addr> is too long."
370 msgstr "I<addr> es demasiado larga."
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<ENOENT>"
377 msgstr "B<ENOENT>"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "A component in the directory prefix of the socket pathname does not exist."
384 msgstr ""
385 "No existe algún componente del prefijo del directorio del nombre de ruta del "
386 "conector."
387
388 #. type: TP
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "B<ENOMEM>"
393 msgstr "B<ENOMEM>"
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid "Insufficient kernel memory was available."
399 msgstr "No hay disponible suficiente memoria del núcleo."
400
401 #. type: TP
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "B<ENOTDIR>"
406 msgstr "B<ENOTDIR>"
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid "A component of the path prefix is not a directory."
412 msgstr "Un componente del prefijo de la ruta no es un directorio."
413
414 #. type: TP
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "B<EROFS>"
419 msgstr "B<EROFS>"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid "The socket inode would reside on a read-only filesystem."
425 msgstr ""
426 "El nodo-i del conector reside en un sistema de ficheros de `sólo lectura'."
427
428 #. type: Plain text
429 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
430 #: opensuse-leap-16-1 opensuse-tumbleweed
431 msgid "Other errors may be generated by the underlying protocol modules."
432 msgstr "Los módulos de protocolo subyacentes pueden generar otros errores."
433
434 #. type: SH
435 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
436 #: opensuse-tumbleweed
437 #, no-wrap
438 msgid "VERSIONS"
439 msgstr "VERSIONES"
440
441 #. type: Plain text
442 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
443 #: opensuse-tumbleweed
444 msgid ""
445 "Portable programs must ensure that I<addr.sun_path> is a null-terminated "
446 "string for B<AF_UNIX> sockets."
447 msgstr ""
448 "Los programas portables deben garantizar que `I<addr.sun_path>` sea una "
449 "cadena terminada en nulo para los sockets `B<AF_UNIX>`."
450
451 #. type: SH
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "STANDARDS"
456 msgstr "ESTÁNDARES"
457
458 #. type: Plain text
459 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
460 #: opensuse-tumbleweed
461 msgid "POSIX.1-2024."
462 msgstr "POSIX.1-2024."
463
464 #. type: SH
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "HISTORY"
469 msgstr "HISTORIAL"
470
471 #. SVr4 documents an additional
472 #. .B ENOSR
473 #. general error condition, and
474 #. additional
475 #. .B EIO
476 #. and
477 #. .B EISDIR
478 #. UNIX-domain error conditions.
479 #. type: Plain text
480 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
481 #: opensuse-tumbleweed
482 msgid "POSIX.1-2001, SVr4, 4.2BSD."
483 msgstr "POSIX.1-2001, SVr4, 4.2BSD."
484
485 #. type: SH
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "BUGS"
490 msgstr "ERRORES"
491
492 #. FIXME Document transparent proxy options
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid "The transparent proxy options are not described."
497 msgstr "No están descritas las opciones de proxy transparente."
498
499 #. type: SH
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "EXAMPLES"
504 msgstr "EJEMPLOS"
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid ""
510 "An example of the use of B<bind>() with Internet domain sockets can be "
511 "found in B<getaddrinfo>(3)."
512 msgstr ""
513 "Un ejemplo del uso de B<bind>() con sockets de dominio de Internet se puede "
514 "encontrar en B<getaddrinfo>(3)."
515
516 #. listen.7 refers to this example.
517 #. accept.7 refers to this example.
518 #. unix.7 refers to this example.
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid ""
523 "The following example shows how to bind a stream socket in the UNIX "
524 "(B<AF_UNIX>) domain, and accept connections:"
525 msgstr ""
526 "El siguiente ejemplo muestra cómo enlazar un socket de flujo en el dominio "
527 "UNIX (B<AF_UNIX>) y aceptar conexiones: "
528
529 #. type: Plain text
530 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
531 #: opensuse-tumbleweed
532 #, no-wrap
533 msgid ""
534 "#include E<lt>err.hE<gt>\n"
535 "#include E<lt>stdlib.hE<gt>\n"
536 "#include E<lt>string.hE<gt>\n"
537 "#include E<lt>sys/socket.hE<gt>\n"
538 "#include E<lt>sys/un.hE<gt>\n"
539 "#include E<lt>unistd.hE<gt>\n"
540 "\\&\n"
541 "#define MY_SOCK_PATH \"/somepath\"\n"
542 "#define LISTEN_BACKLOG 50\n"
543 "\\&\n"
544 "int\n"
545 "main(void)\n"
546 "{\n"
547 " int sfd, cfd;\n"
548 " socklen_t peer_addr_size;\n"
549 " struct sockaddr_un my_addr, peer_addr;\n"
550 "\\&\n"
551 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
552 " if (sfd == -1)\n"
553 " err(EXIT_FAILURE, \"socket\");\n"
554 "\\&\n"
555 " memset(&my_addr, 0, sizeof(my_addr));\n"
556 " my_addr.sun_family = AF_UNIX;\n"
557 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
558 " sizeof(my_addr.sun_path) - 1);\n"
559 "\\&\n"
560 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
561 " sizeof(my_addr)) == -1)\n"
562 " err(EXIT_FAILURE, \"bind\");\n"
563 "\\&\n"
564 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
565 " err(EXIT_FAILURE, \"listen\");\n"
566 "\\&\n"
567 " /* Now we can accept incoming connections one\n"
568 " at a time using accept(2). */\n"
569 "\\&\n"
570 " peer_addr_size = sizeof(peer_addr);\n"
571 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
572 " &peer_addr_size);\n"
573 " if (cfd == -1)\n"
574 " err(EXIT_FAILURE, \"accept\");\n"
575 "\\&\n"
576 " /* Code to deal with incoming connection(s)... */\n"
577 "\\&\n"
578 " if (close(sfd) == -1)\n"
579 " err(EXIT_FAILURE, \"close\");\n"
580 "\\&\n"
581 " if (unlink(MY_SOCK_PATH) == -1)\n"
582 " err(EXIT_FAILURE, \"unlink\");\n"
583 "}\n"
584 msgstr ""
585 "#include E<lt>err.hE<gt>\n"
586 "#include E<lt>stdlib.hE<gt>\n"
587 "#include E<lt>string.hE<gt>\n"
588 "#include E<lt>sys/socket.hE<gt>\n"
589 "#include E<lt>sys/un.hE<gt>\n"
590 "#include E<lt>unistd.hE<gt>\n"
591 "\\&\n"
592 "#define MY_SOCK_PATH \"/somepath\"\n"
593 "#define LISTEN_BACKLOG 50\n"
594 "\\&\n"
595 "int\n"
596 "main(void)\n"
597 "{\n"
598 " int sfd, cfd;\n"
599 " socklen_t peer_addr_size;\n"
600 " struct sockaddr_un my_addr, peer_addr;\n"
601 "\\&\n"
602 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
603 " if (sfd == -1)\n"
604 " err(EXIT_FAILURE, \"socket\");\n"
605 "\\&\n"
606 " memset(&my_addr, 0, sizeof(my_addr));\n"
607 " my_addr.sun_family = AF_UNIX;\n"
608 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
609 " sizeof(my_addr.sun_path) - 1);\n"
610 "\\&\n"
611 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
612 " sizeof(my_addr)) == -1)\n"
613 " err(EXIT_FAILURE, \"bind\");\n"
614 "\\&\n"
615 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
616 " err(EXIT_FAILURE, \"listen\");\n"
617 "\\&\n"
618 " /* Now we can accept incoming connections one\n"
619 " at a time using accept(2). */\n"
620 "\\&\n"
621 " peer_addr_size = sizeof(peer_addr);\n"
622 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
623 " &peer_addr_size);\n"
624 " if (cfd == -1)\n"
625 " err(EXIT_FAILURE, \"accept\");\n"
626 "\\&\n"
627 " /* Code to deal with incoming connection(s)... */\n"
628 "\\&\n"
629 " if (close(sfd) == -1)\n"
630 " err(EXIT_FAILURE, \"close\");\n"
631 "\\&\n"
632 " if (unlink(MY_SOCK_PATH) == -1)\n"
633 " err(EXIT_FAILURE, \"unlink\");\n"
634 "}\n"
635 "#include E<lt>stdio.hE<gt>\n"
636 "#include E<lt>stdlib.hE<gt>\n"
637 "#include E<lt>string.hE<gt>\n"
638 "#include E<lt>sys/socket.hE<gt>\n"
639 "#include E<lt>sys/un.hE<gt>\n"
640 "#include E<lt>unistd.hE<gt>\n"
641 "\\&\n"
642 "#define MY_SOCK_PATH \"/somepath\"\n"
643 "#define LISTEN_BACKLOG 50\n"
644 "\\&\n"
645 "#define handle_error(msg) \\e\n"
646 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
647 "\\&\n"
648 "int\n"
649 "main(void)\n"
650 "{\n"
651 " int sfd, cfd;\n"
652 " socklen_t peer_addr_size;\n"
653 " struct sockaddr_un my_addr, peer_addr;\n"
654 "\\&\n"
655 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
656 " if (sfd == -1)\n"
657 " handle_error(\"socket\");\n"
658 "\\&\n"
659 " memset(&my_addr, 0, sizeof(my_addr));\n"
660 " my_addr.sun_family = AF_UNIX;\n"
661 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
662 " sizeof(my_addr.sun_path) - 1);\n"
663 "\\&\n"
664 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
665 " sizeof(my_addr)) == -1)\n"
666 " handle_error(\"bind\");\n"
667 "\\&\n"
668 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
669 " handle_error(\"listen\");\n"
670 "\\&\n"
671 " /* Now we can accept incoming connections one\n"
672 " at a time using accept(2). */\n"
673 "\\&\n"
674 " peer_addr_size = sizeof(peer_addr);\n"
675 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
676 " &peer_addr_size);\n"
677 " if (cfd == -1)\n"
678 " handle_error(\"accept\");\n"
679 "\\&\n"
680 " /* Código para gestionar conexiones entrantes... */\n"
681 "\\&\n"
682 " if (close(sfd) == -1)\n"
683 " handle_error(\"close\");\n"
684 "\\&\n"
685 " if (unlink(MY_SOCK_PATH) == -1)\n"
686 " handle_error(\"unlink\");\n"
687 "}\n"
688
689 #. SRC END
690 #. type: SH
691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
693 #, no-wrap
694 msgid "SEE ALSO"
695 msgstr "VÉASE TAMBIÉN"
696
697 #. type: Plain text
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 msgid ""
701 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
702 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
703 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
704 msgstr ""
705 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
706 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
707 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
708
709 #. type: TH
710 #: debian-trixie
711 #, no-wrap
712 msgid "2024-06-15"
713 msgstr "15 Junio 2024"
714
715 #. type: TH
716 #: debian-trixie
717 #, no-wrap
718 msgid "Linux man-pages 6.9.1"
719 msgstr "Páginas de Manual de Linux 6.9.1"
720
721 #. type: Plain text
722 #: debian-trixie
723 msgid "Standard C library (I<libc>, I<-lc>)"
724 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
725
726 #. type: Plain text
727 #: debian-trixie fedora-44 fedora-rawhide
728 msgid "POSIX.1-2008."
729 msgstr "POSIX.1-2008."
730
731 #. SVr4 documents an additional
732 #. .B ENOSR
733 #. general error condition, and
734 #. additional
735 #. .B EIO
736 #. and
737 #. .B EISDIR
738 #. UNIX-domain error conditions.
739 #. type: Plain text
740 #: debian-trixie fedora-44 fedora-rawhide
741 msgid "POSIX.1-2001, SVr4, 4.4BSD (B<bind>() first appeared in 4.2BSD)."
742 msgstr ""
743 "POSIX.1-2001, SVr4, 4.4BSD (B<bind>() apareció por primera vez en 4.2BSD)."
744
745 #. type: Plain text
746 #: debian-trixie fedora-44 fedora-rawhide
747 #, no-wrap
748 msgid ""
749 "#include E<lt>stdio.hE<gt>\n"
750 "#include E<lt>stdlib.hE<gt>\n"
751 "#include E<lt>string.hE<gt>\n"
752 "#include E<lt>sys/socket.hE<gt>\n"
753 "#include E<lt>sys/un.hE<gt>\n"
754 "#include E<lt>unistd.hE<gt>\n"
755 "\\&\n"
756 "#define MY_SOCK_PATH \"/somepath\"\n"
757 "#define LISTEN_BACKLOG 50\n"
758 "\\&\n"
759 "#define handle_error(msg) \\[rs]\n"
760 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
761 "\\&\n"
762 "int\n"
763 "main(void)\n"
764 "{\n"
765 " int sfd, cfd;\n"
766 " socklen_t peer_addr_size;\n"
767 " struct sockaddr_un my_addr, peer_addr;\n"
768 "\\&\n"
769 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
770 " if (sfd == -1)\n"
771 " handle_error(\"socket\");\n"
772 "\\&\n"
773 " memset(&my_addr, 0, sizeof(my_addr));\n"
774 " my_addr.sun_family = AF_UNIX;\n"
775 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
776 " sizeof(my_addr.sun_path) - 1);\n"
777 "\\&\n"
778 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
779 " sizeof(my_addr)) == -1)\n"
780 " handle_error(\"bind\");\n"
781 "\\&\n"
782 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
783 " handle_error(\"listen\");\n"
784 "\\&\n"
785 " /* Now we can accept incoming connections one\n"
786 " at a time using accept(2). */\n"
787 "\\&\n"
788 " peer_addr_size = sizeof(peer_addr);\n"
789 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
790 " &peer_addr_size);\n"
791 " if (cfd == -1)\n"
792 " handle_error(\"accept\");\n"
793 "\\&\n"
794 " /* Code to deal with incoming connection(s)... */\n"
795 "\\&\n"
796 " if (close(sfd) == -1)\n"
797 " handle_error(\"close\");\n"
798 "\\&\n"
799 " if (unlink(MY_SOCK_PATH) == -1)\n"
800 " handle_error(\"unlink\");\n"
801 "}\n"
802 msgstr ""
803 "#include E<lt>stdio.hE<gt>\n"
804 "#include E<lt>stdlib.hE<gt>\n"
805 "#include E<lt>string.hE<gt>\n"
806 "#include E<lt>sys/socket.hE<gt>\n"
807 "#include E<lt>sys/un.hE<gt>\n"
808 "#include E<lt>unistd.hE<gt>\n"
809 "\\&\n"
810 "#define MY_SOCK_PATH \"/somepath\"\n"
811 "#define LISTEN_BACKLOG 50\n"
812 "\\&\n"
813 "#define handle_error(msg) \\[rs]\n"
814 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
815 "\\&\n"
816 "int\n"
817 "main(void)\n"
818 "{\n"
819 " int sfd, cfd;\n"
820 " socklen_t peer_addr_size;\n"
821 " struct sockaddr_un my_addr, peer_addr;\n"
822 "\\&\n"
823 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
824 " if (sfd == -1)\n"
825 " handle_error(\"socket\");\n"
826 "\\&\n"
827 " memset(&my_addr, 0, sizeof(my_addr));\n"
828 " my_addr.sun_family = AF_UNIX;\n"
829 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
830 " sizeof(my_addr.sun_path) - 1);\n"
831 "\\&\n"
832 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
833 " sizeof(my_addr)) == -1)\n"
834 " handle_error(\"bind\");\n"
835 "\\&\n"
836 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
837 " handle_error(\"listen\");\n"
838 "\\&\n"
839 " /* Now we can accept incoming connections one\n"
840 " at a time using accept(2). */\n"
841 "\\&\n"
842 " peer_addr_size = sizeof(peer_addr);\n"
843 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
844 " &peer_addr_size);\n"
845 " if (cfd == -1)\n"
846 " handle_error(\"accept\");\n"
847 "\\&\n"
848 " /* Code to deal with incoming connection(s)... */\n"
849 "\\&\n"
850 " if (close(sfd) == -1)\n"
851 " handle_error(\"close\");\n"
852 "\\&\n"
853 " if (unlink(MY_SOCK_PATH) == -1)\n"
854 " handle_error(\"unlink\");\n"
855 "}\n"
856
857 #. type: TH
858 #: fedora-44 fedora-rawhide
859 #, no-wrap
860 msgid "2024-11-06"
861 msgstr "6 Noviembre 2024"
862
863 #. type: TH
864 #: fedora-44 fedora-rawhide
865 #, no-wrap
866 msgid "Linux man-pages 6.13"
867 msgstr "Páginas de Manual de Linux 6.13"
868
869 #. type: TH
870 #: mageia-cauldron
871 #, no-wrap
872 msgid "Linux man-pages 6.17"
873 msgstr "Páginas de Manual de Linux 6.17"
874
875 #. type: TH
876 #: opensuse-leap-16-1 opensuse-tumbleweed
877 #, no-wrap
878 msgid "Linux man-pages (unreleased)"
879 msgstr "Páginas de Manual de Linux (no publicadas)"