Debian Codegraph @

po/ko/man2/bind.2.po

raw
1 # Korean translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # 정강훈 <[email protected]>, 2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
9 "PO-Revision-Date: 2000-07-02 08:57+0900\n"
10 "Last-Translator: 정강훈 <[email protected]>\n"
11 "Language-Team: Korean <[email protected]>\n"
12 "Language: ko\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=1; plural=0;\n"
17
18 #. type: TH
19 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
20 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
21 #, no-wrap
22 msgid "bind"
23 msgstr "bind"
24
25 #. type: TH
26 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
27 #: opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-08"
30 msgstr "2026년 2월 8일"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr "Linux man-pages 6.18"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "이름"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "bind - bind a name to a socket"
49 msgstr "bind - 소켓에 이름을 묶는다."
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr "라이브러리"
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr "표준 C 라이브러리 (I<libc>,\\ I<-lc>)"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr "요약"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
76 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
84 "B< socklen_t >I<addrlen>B<);>\n"
85 msgstr ""
86 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
87 "B< socklen_t >I<addrlen>B<);>\n"
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr "설명"
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "When a socket is created with B<socket>(2), it exists in a name space "
101 "(address family) but has no address assigned to it. B<bind>() assigns the "
102 "address specified by I<addr> to the socket referred to by the file "
103 "descriptor I<sockfd>. I<addrlen> specifies the size, in bytes, of the "
104 "address structure pointed to by I<addr>. Traditionally, this operation is "
105 "called \\[lq]assigning a name to a socket\\[rq]."
106 msgstr ""
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "It is normally necessary to assign a local address using B<bind>() before a "
113 "B<SOCK_STREAM> socket may receive connections (see B<accept>(2))."
114 msgstr ""
115 "B<SOCK_STREAM> 소켓이 연결들을 받기 전에 B<bind>() 를 사용하여 로컬 주소를 할"
116 "당하는 것이 보통 필수적이다. B<accept>(2)를 참조해라)."
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, fuzzy
122 #| msgid ""
123 #| "The rules used in name binding vary between address families. Consult "
124 #| "the manual entries in Section 7 for detailed information. For B<AF_INET> "
125 #| "see B<ip>(7), for B<AF_UNIX> see B<unix>(7), for B<AF_APPLETALK> see "
126 #| "B<ddp>(7), for B<AF_PACKET> see B<packet>(7), for B<AF_X25> see "
127 #| "B<x25>(7) and for B<AF_NETLINK> see B<netlink>(7)."
128 msgid ""
129 "The rules used in name binding vary between address families. Consult the "
130 "manual entries in Section 7 for detailed information. For B<AF_INET>, see "
131 "B<ip>(7); for B<AF_INET6>, see B<ipv6>(7); for B<AF_UNIX>, see B<unix>(7); "
132 "for B<AF_APPLETALK>, see B<ddp>(7); for B<AF_PACKET>, see B<packet>(7); for "
133 "B<AF_X25>, see B<x25>(7); and for B<AF_NETLINK>, see B<netlink>(7)."
134 msgstr ""
135 "이름 묶기시 사용되는 규칙들은 주소 가족(address families)들마다 다르다. 세"
136 "부 사항을 위해서 Section 7에 있는 메뉴얼을 참조해라. B<AF_INET> 를 위해서는 "
137 "B<ip>(7)를, B<AF_UNIX> 를 위해서는 B<unix>(7)를, B<AF_APPLETALK> 를 위해서는 "
138 "B<ddp>(7)를, B<AF_PACKET> 를 위해서는 B<packet>(7)를, B<AF_X25> 를 위해서는 "
139 "B<x25>(7)를 그리고 B<AF_NETLINK> 를 위해서는 B<netlink>(7)를 참고해라."
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "The actual structure passed for the I<addr> argument will depend on the "
146 "address family. The I<sockaddr> structure is defined as something like:"
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid ""
154 "struct sockaddr {\n"
155 " sa_family_t sa_family;\n"
156 " char sa_data[14];\n"
157 "}\n"
158 msgstr ""
159 "struct sockaddr {\n"
160 " sa_family_t sa_family;\n"
161 " char sa_data[14];\n"
162 "}\n"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "The only purpose of this structure is to cast the structure pointer passed "
169 "in I<addr> in order to avoid compiler warnings. See EXAMPLES below."
170 msgstr ""
171
172 #. type: SH
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "RETURN VALUE"
177 msgstr "반환값"
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 #, fuzzy
183 #| msgid ""
184 #| "On success, zero is returned. On error, -1 is returned, and I<errno> is "
185 #| "set appropriately."
186 msgid ""
187 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
188 "to indicate the error."
189 msgstr ""
190 "성공시, 0이 반환된다. 에러시, -1이 반환되며, I<errno> 는 적당한 값으로 설정된"
191 "다."
192
193 #. type: SH
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "ERRORS"
198 msgstr "에러"
199
200 #. type: TP
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "B<EACCES>"
205 msgstr "B<EACCES>"
206
207 #. e.g., privileged port in AF_INET domain
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid "The address is protected, and the user is not the superuser."
212 msgstr "주소가 보호되어 있으며, 사용자는 슈퍼 유저가 아니다."
213
214 #. type: TP
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "B<EADDRINUSE>"
219 msgstr "B<EADDRINUSE>"
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid "The given address is already in use."
225 msgstr ""
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 ""
231 "(Internet domain sockets) The port number was specified as zero in the "
232 "socket address structure, but, upon attempting to bind to an ephemeral port, "
233 "it was determined that all port numbers in the ephemeral port range are "
234 "currently in use. See the discussion of I</proc/sys/net/ipv4/"
235 "ip_local_port_range> B<ip>(7)."
236 msgstr ""
237
238 #. type: TP
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "B<EBADF>"
243 msgstr "B<EBADF>"
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid "I<sockfd> is not a valid file descriptor."
249 msgstr "I<sockfd>가 유효한 파일 기술자가 아니다."
250
251 #. type: TP
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "B<EINVAL>"
256 msgstr "B<EINVAL>"
257
258 #. This may change in the future: see
259 #. .I linux/unix/sock.c for details.
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "The socket is already bound to an address."
264 msgstr ""
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "I<addrlen> is wrong, or I<addr> is not a valid address for this socket's "
271 "domain."
272 msgstr ""
273
274 #. type: TP
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "B<ENOTSOCK>"
279 msgstr "B<ENOTSOCK>"
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, fuzzy
285 #| msgid "File descriptor does not refer to a directory."
286 msgid "The file descriptor I<sockfd> does not refer to a socket."
287 msgstr "파일 기술자가 디렉토리를 가리키지 않는다."
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<EADDRNOTAVAIL>"
294 msgstr "B<EADDRNOTAVAIL>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "A nonexistent interface was requested or the requested address was not local."
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "The following errors are specific to UNIX domain (B<AF_UNIX>) sockets:"
307 msgstr "다음 에러들은 UNIX 도메인 (B<AF_UNIX>)소켓들을 위한 것들이다.:"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, fuzzy
313 #| msgid "Search permission is denied on a component of the path prefix."
314 msgid ""
315 "Search permission is denied on a component of the path prefix. (See also "
316 "B<path_resolution>(7).)"
317 msgstr "경로 접두사 요소에 대한 검색 허가권이 거부되었다."
318
319 #. type: TP
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "B<EFAULT>"
324 msgstr "B<EFAULT>"
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid "I<addr> points outside the user's accessible address space."
330 msgstr "I<addr> 가 사용자가 접근할수 있는 조소 공간외를 가리키고 있다."
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<ELOOP>"
337 msgstr "B<ELOOP>"
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 "Too many symbolic links were encountered in resolving I<addr>."
343 msgstr "너무 많은 상징 연결들을 I<addr>시에 만났다."
344
345 #. type: TP
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<ENAMETOOLONG>"
350 msgstr "B<ENAMETOOLONG>"
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid "I<addr> is too long."
356 msgstr "I<addr> 가 너무 길다."
357
358 #. type: TP
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "B<ENOENT>"
363 msgstr "B<ENOENT>"
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "A component in the directory prefix of the socket pathname does not exist."
370 msgstr ""
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<ENOMEM>"
377 msgstr "B<ENOMEM>"
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 "Insufficient kernel memory was available."
383 msgstr "이용할수 있는 커널 메모리가 충분하지 않다."
384
385 #. type: TP
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "B<ENOTDIR>"
390 msgstr "B<ENOTDIR>"
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid "A component of the path prefix is not a directory."
396 msgstr "경로 접두사 요소가 디렉토리가 아니다."
397
398 #. type: TP
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "B<EROFS>"
403 msgstr "B<EROFS>"
404
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 msgid "The socket inode would reside on a read-only filesystem."
409 msgstr "소켓 아이노드가 읽기-전용 파일 시스템에 있다."
410
411 #. type: Plain text
412 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
413 #: opensuse-leap-16-1 opensuse-tumbleweed
414 msgid "Other errors may be generated by the underlying protocol modules."
415 msgstr ""
416
417 #. type: SH
418 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
419 #: opensuse-tumbleweed
420 #, no-wrap
421 msgid "VERSIONS"
422 msgstr "버전S"
423
424 #. type: Plain text
425 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
426 #: opensuse-tumbleweed
427 msgid ""
428 "Portable programs must ensure that I<addr.sun_path> is a null-terminated "
429 "string for B<AF_UNIX> sockets."
430 msgstr ""
431
432 #. type: SH
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "STANDARDS"
437 msgstr "표준"
438
439 #. type: Plain text
440 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
441 #: opensuse-tumbleweed
442 msgid "POSIX.1-2024."
443 msgstr "POSIX.1-2024."
444
445 #. type: SH
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "HISTORY"
450 msgstr "이력"
451
452 #. SVr4 documents an additional
453 #. .B ENOSR
454 #. general error condition, and
455 #. additional
456 #. .B EIO
457 #. and
458 #. .B EISDIR
459 #. UNIX-domain error conditions.
460 #. type: Plain text
461 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
462 #: opensuse-tumbleweed
463 #, fuzzy
464 #| msgid "POSIX.1-2001, SVr4, 4.4BSD."
465 msgid "POSIX.1-2001, SVr4, 4.2BSD."
466 msgstr "POSIX.1-2001, SVr4, 4.4BSD."
467
468 #. type: SH
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "BUGS"
473 msgstr "버그"
474
475 #. FIXME Document transparent proxy options
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 msgid "The transparent proxy options are not described."
480 msgstr "투명한 프록시 옵션들은 기술되지 않았다."
481
482 #. type: SH
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "EXAMPLES"
487 msgstr "폐제"
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 msgid ""
493 "An example of the use of B<bind>() with Internet domain sockets can be "
494 "found in B<getaddrinfo>(3)."
495 msgstr ""
496
497 #. listen.7 refers to this example.
498 #. accept.7 refers to this example.
499 #. unix.7 refers to this example.
500 #. type: Plain text
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 msgid ""
504 "The following example shows how to bind a stream socket in the UNIX "
505 "(B<AF_UNIX>) domain, and accept connections:"
506 msgstr ""
507
508 #. type: Plain text
509 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
510 #: opensuse-tumbleweed
511 #, no-wrap
512 msgid ""
513 "#include E<lt>err.hE<gt>\n"
514 "#include E<lt>stdlib.hE<gt>\n"
515 "#include E<lt>string.hE<gt>\n"
516 "#include E<lt>sys/socket.hE<gt>\n"
517 "#include E<lt>sys/un.hE<gt>\n"
518 "#include E<lt>unistd.hE<gt>\n"
519 "\\&\n"
520 "#define MY_SOCK_PATH \"/somepath\"\n"
521 "#define LISTEN_BACKLOG 50\n"
522 "\\&\n"
523 "int\n"
524 "main(void)\n"
525 "{\n"
526 " int sfd, cfd;\n"
527 " socklen_t peer_addr_size;\n"
528 " struct sockaddr_un my_addr, peer_addr;\n"
529 "\\&\n"
530 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
531 " if (sfd == -1)\n"
532 " err(EXIT_FAILURE, \"socket\");\n"
533 "\\&\n"
534 " memset(&my_addr, 0, sizeof(my_addr));\n"
535 " my_addr.sun_family = AF_UNIX;\n"
536 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
537 " sizeof(my_addr.sun_path) - 1);\n"
538 "\\&\n"
539 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
540 " sizeof(my_addr)) == -1)\n"
541 " err(EXIT_FAILURE, \"bind\");\n"
542 "\\&\n"
543 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
544 " err(EXIT_FAILURE, \"listen\");\n"
545 "\\&\n"
546 " /* Now we can accept incoming connections one\n"
547 " at a time using accept(2). */\n"
548 "\\&\n"
549 " peer_addr_size = sizeof(peer_addr);\n"
550 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
551 " &peer_addr_size);\n"
552 " if (cfd == -1)\n"
553 " err(EXIT_FAILURE, \"accept\");\n"
554 "\\&\n"
555 " /* Code to deal with incoming connection(s)... */\n"
556 "\\&\n"
557 " if (close(sfd) == -1)\n"
558 " err(EXIT_FAILURE, \"close\");\n"
559 "\\&\n"
560 " if (unlink(MY_SOCK_PATH) == -1)\n"
561 " err(EXIT_FAILURE, \"unlink\");\n"
562 "}\n"
563 msgstr ""
564
565 #. SRC END
566 #. type: SH
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid "SEE ALSO"
571 msgstr "추가 참조"
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
578 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
579 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
580 msgstr ""
581 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
582 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
583 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
584
585 #. type: TH
586 #: debian-trixie
587 #, no-wrap
588 msgid "2024-06-15"
589 msgstr "2024년 6월 15일"
590
591 #. type: TH
592 #: debian-trixie
593 #, no-wrap
594 msgid "Linux man-pages 6.9.1"
595 msgstr "Linux man-pages 6.9.1"
596
597 #. type: Plain text
598 #: debian-trixie
599 msgid "Standard C library (I<libc>, I<-lc>)"
600 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
601
602 #. type: Plain text
603 #: debian-trixie fedora-44 fedora-rawhide
604 msgid "POSIX.1-2008."
605 msgstr "POSIX.1-2008."
606
607 #. SVr4 documents an additional
608 #. .B ENOSR
609 #. general error condition, and
610 #. additional
611 #. .B EIO
612 #. and
613 #. .B EISDIR
614 #. UNIX-domain error conditions.
615 #. type: Plain text
616 #: debian-trixie fedora-44 fedora-rawhide
617 msgid "POSIX.1-2001, SVr4, 4.4BSD (B<bind>() first appeared in 4.2BSD)."
618 msgstr ""
619
620 #. type: Plain text
621 #: debian-trixie fedora-44 fedora-rawhide
622 #, no-wrap
623 msgid ""
624 "#include E<lt>stdio.hE<gt>\n"
625 "#include E<lt>stdlib.hE<gt>\n"
626 "#include E<lt>string.hE<gt>\n"
627 "#include E<lt>sys/socket.hE<gt>\n"
628 "#include E<lt>sys/un.hE<gt>\n"
629 "#include E<lt>unistd.hE<gt>\n"
630 "\\&\n"
631 "#define MY_SOCK_PATH \"/somepath\"\n"
632 "#define LISTEN_BACKLOG 50\n"
633 "\\&\n"
634 "#define handle_error(msg) \\[rs]\n"
635 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
636 "\\&\n"
637 "int\n"
638 "main(void)\n"
639 "{\n"
640 " int sfd, cfd;\n"
641 " socklen_t peer_addr_size;\n"
642 " struct sockaddr_un my_addr, peer_addr;\n"
643 "\\&\n"
644 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
645 " if (sfd == -1)\n"
646 " handle_error(\"socket\");\n"
647 "\\&\n"
648 " memset(&my_addr, 0, sizeof(my_addr));\n"
649 " my_addr.sun_family = AF_UNIX;\n"
650 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
651 " sizeof(my_addr.sun_path) - 1);\n"
652 "\\&\n"
653 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
654 " sizeof(my_addr)) == -1)\n"
655 " handle_error(\"bind\");\n"
656 "\\&\n"
657 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
658 " handle_error(\"listen\");\n"
659 "\\&\n"
660 " /* Now we can accept incoming connections one\n"
661 " at a time using accept(2). */\n"
662 "\\&\n"
663 " peer_addr_size = sizeof(peer_addr);\n"
664 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
665 " &peer_addr_size);\n"
666 " if (cfd == -1)\n"
667 " handle_error(\"accept\");\n"
668 "\\&\n"
669 " /* Code to deal with incoming connection(s)... */\n"
670 "\\&\n"
671 " if (close(sfd) == -1)\n"
672 " handle_error(\"close\");\n"
673 "\\&\n"
674 " if (unlink(MY_SOCK_PATH) == -1)\n"
675 " handle_error(\"unlink\");\n"
676 "}\n"
677 msgstr ""
678
679 #. type: TH
680 #: fedora-44 fedora-rawhide
681 #, no-wrap
682 msgid "2024-11-06"
683 msgstr "2024년 11월 6일"
684
685 #. type: TH
686 #: fedora-44 fedora-rawhide
687 #, no-wrap
688 msgid "Linux man-pages 6.13"
689 msgstr "Linux man-pages 6.13"
690
691 #. type: TH
692 #: mageia-cauldron
693 #, no-wrap
694 msgid "Linux man-pages 6.17"
695 msgstr "Linux man-pages 6.17"
696
697 #. type: TH
698 #: opensuse-leap-16-1 opensuse-tumbleweed
699 #, no-wrap
700 msgid "Linux man-pages (unreleased)"
701 msgstr "Linux man-pages (미공개)"