| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:39+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "recv" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2025-10-29" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "recv, recvfrom, recvmsg - receive a message from a socket" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>sys/socket.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 81 |
#: opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<ssize_t recv(>size_t size;\n" |
| 85 |
"B< int >I<sockfd>B<, void >I<buf>B<[>I<size>B<], size_t >I<size>B<,>\n" |
| 86 |
"B< int >I<flags>B<);>\n" |
| 87 |
"B<ssize_t recvfrom(>size_t size;\n" |
| 88 |
"B< int >I<sockfd>B<, void >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 89 |
"B< int >I<flags>B<,>\n" |
| 90 |
"B< struct sockaddr *_Nullable restrict >I<src_addr>B<,>\n" |
| 91 |
"B< socklen_t *_Nullable restrict >I<addrlen>B<);>\n" |
| 92 |
"B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: SH |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "DESCRIPTION" |
| 100 |
msgstr "" |
| 101 |
|
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
msgid "" |
| 106 |
"The B<recv>(), B<recvfrom>(), and B<recvmsg>() calls are used to receive " |
| 107 |
"messages from a socket. They may be used to receive data on both " |
| 108 |
"connectionless and connection-oriented sockets. This page first describes " |
| 109 |
"common features of all three system calls, and then describes the " |
| 110 |
"differences between the calls." |
| 111 |
msgstr "" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
msgid "" |
| 117 |
"The only difference between B<recv>() and B<read>(2) is the presence of " |
| 118 |
"I<flags>. With a zero I<flags> argument, B<recv>() is generally equivalent " |
| 119 |
"to B<read>(2) (but see NOTES). Also, the following call" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 124 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, no-wrap |
| 126 |
msgid "recv(sockfd, buf, size, flags);\n" |
| 127 |
msgstr "" |
| 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 "is equivalent to" |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 137 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
#, no-wrap |
| 139 |
msgid "recvfrom(sockfd, buf, size, flags, NULL, NULL);\n" |
| 140 |
msgstr "" |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 144 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"All three calls return the size of the message on successful completion. If " |
| 147 |
"a message is too long to fit in the supplied buffer, excess bytes may be " |
| 148 |
"discarded depending on the type of socket the message is received from." |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
msgid "" |
| 155 |
"If no messages are available at the socket, the receive calls wait for a " |
| 156 |
"message to arrive, unless the socket is nonblocking (see B<fcntl>(2)), in " |
| 157 |
"which case the value -1 is returned and I<errno> is set to B<EAGAIN> or " |
| 158 |
"B<EWOULDBLOCK>. The receive calls normally return any data available, up to " |
| 159 |
"the requested amount, rather than waiting for receipt of the full amount " |
| 160 |
"requested." |
| 161 |
msgstr "" |
| 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 "" |
| 167 |
"An application can use B<select>(2), B<poll>(2), or B<epoll>(7) to " |
| 168 |
"determine when more data arrives on a socket." |
| 169 |
msgstr "" |
| 170 |
|
| 171 |
#. type: SS |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
#, no-wrap |
| 175 |
msgid "The flags argument" |
| 176 |
msgstr "" |
| 177 |
|
| 178 |
#. type: Plain text |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
msgid "" |
| 182 |
"The I<flags> argument is formed by ORing one or more of the following values:" |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#. type: TP |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
#, no-wrap |
| 189 |
msgid "B<MSG_CMSG_CLOEXEC> (B<recvmsg>() only; since Linux 2.6.23)" |
| 190 |
msgstr "" |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"Set the close-on-exec flag for the file descriptor received via a UNIX " |
| 197 |
"domain file descriptor using the B<SCM_RIGHTS> operation (described in " |
| 198 |
"B<unix>(7)). This flag is useful for the same reasons as the B<O_CLOEXEC> " |
| 199 |
"flag of B<open>(2)." |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: TP |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
#, no-wrap |
| 206 |
msgid "B<MSG_DONTWAIT> (since Linux 2.2)" |
| 207 |
msgstr "" |
| 208 |
|
| 209 |
#. type: Plain text |
| 210 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 211 |
#: opensuse-tumbleweed |
| 212 |
msgid "" |
| 213 |
"Enables nonblocking operation; if the operation would block, the call fails " |
| 214 |
"with B<EAGAIN> or B<EWOULDBLOCK>. This provides similar behavior to setting " |
| 215 |
"the B<O_NONBLOCK> flag (via the B<fcntl>(2) B<F_SETFL> operation), but " |
| 216 |
"differs in that B<MSG_DONTWAIT> is a per-call option, whereas B<O_NONBLOCK> " |
| 217 |
"is a setting on the open file description (see B<open>(2)), which will " |
| 218 |
"affect all threads in the calling process as well as other processes that " |
| 219 |
"hold file descriptors referring to the same open file description." |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: TP |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
#, no-wrap |
| 226 |
msgid "B<MSG_ERRQUEUE> (since Linux 2.2)" |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
msgid "" |
| 233 |
"This flag specifies that queued errors should be received from the socket " |
| 234 |
"error queue. The error is passed in an ancillary message with a type " |
| 235 |
"dependent on the protocol (for IPv4 B<IP_RECVERR>). The user should supply " |
| 236 |
"a buffer of sufficient size. See B<cmsg>(3) and B<ip>(7) for more " |
| 237 |
"information. The payload of the original packet that caused the error is " |
| 238 |
"passed as normal data via I<msg_iovec>. The original destination address of " |
| 239 |
"the datagram that caused the error is supplied via I<msg_name>." |
| 240 |
msgstr "" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "The error is supplied in a I<sock_extended_err> structure:" |
| 246 |
msgstr "" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "" |
| 253 |
"#define SO_EE_ORIGIN_NONE 0\n" |
| 254 |
"#define SO_EE_ORIGIN_LOCAL 1\n" |
| 255 |
"#define SO_EE_ORIGIN_ICMP 2\n" |
| 256 |
"#define SO_EE_ORIGIN_ICMP6 3\n" |
| 257 |
"\\&\n" |
| 258 |
"struct sock_extended_err\n" |
| 259 |
"{\n" |
| 260 |
" uint32_t ee_errno; /* Error number */\n" |
| 261 |
" uint8_t ee_origin; /* Where the error originated */\n" |
| 262 |
" uint8_t ee_type; /* Type */\n" |
| 263 |
" uint8_t ee_code; /* Code */\n" |
| 264 |
" uint8_t ee_pad; /* Padding */\n" |
| 265 |
" uint32_t ee_info; /* Additional information */\n" |
| 266 |
" uint32_t ee_data; /* Other data */\n" |
| 267 |
" /* More data may follow */\n" |
| 268 |
"};\n" |
| 269 |
"\\&\n" |
| 270 |
"struct sockaddr *SO_EE_OFFENDER(struct sock_extended_err *);\n" |
| 271 |
msgstr "" |
| 272 |
|
| 273 |
#. type: Plain text |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
msgid "" |
| 277 |
"I<ee_errno> contains the I<errno> number of the queued error. I<ee_origin> " |
| 278 |
"is the origin code of where the error originated. The other fields are " |
| 279 |
"protocol-specific. The macro B<SO_EE_OFFENDER> returns a pointer to the " |
| 280 |
"address of the network object where the error originated from given a " |
| 281 |
"pointer to the ancillary message. If this address is not known, the " |
| 282 |
"I<sa_family> member of the I<sockaddr> contains B<AF_UNSPEC> and the other " |
| 283 |
"fields of the I<sockaddr> are undefined. The payload of the packet that " |
| 284 |
"caused the error is passed as normal data." |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
msgid "" |
| 291 |
"For local errors, no address is passed (this can be checked with the " |
| 292 |
"I<cmsg_len> member of the I<cmsghdr>). For error receives, the " |
| 293 |
"B<MSG_ERRQUEUE> flag is set in the I<msghdr>. After an error has been " |
| 294 |
"passed, the pending socket error is regenerated based on the next queued " |
| 295 |
"error and will be passed on the next socket operation." |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#. type: TP |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
#, no-wrap |
| 302 |
msgid "B<MSG_OOB>" |
| 303 |
msgstr "" |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
msgid "" |
| 309 |
"This flag requests receipt of out-of-band data that would not be received in " |
| 310 |
"the normal data stream. Some protocols place expedited data at the head of " |
| 311 |
"the normal data queue, and thus this flag cannot be used with such protocols." |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#. type: TP |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
#, no-wrap |
| 318 |
msgid "B<MSG_PEEK>" |
| 319 |
msgstr "" |
| 320 |
|
| 321 |
#. type: Plain text |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
msgid "" |
| 325 |
"This flag causes the receive operation to return data from the beginning of " |
| 326 |
"the receive queue without removing that data from the queue. Thus, a " |
| 327 |
"subsequent receive call will return the same data." |
| 328 |
msgstr "" |
| 329 |
|
| 330 |
#. type: TP |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
#, no-wrap |
| 334 |
msgid "B<MSG_TRUNC> (since Linux 2.2)" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. commit 9f6f9af7694ede6314bed281eec74d588ba9474f |
| 338 |
#. type: Plain text |
| 339 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 340 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
msgid "" |
| 342 |
"For raw (B<AF_PACKET>), Internet datagram (since Linux 2.4.27/2.6.8), " |
| 343 |
"netlink (since Linux 2.6.22), and UNIX datagram as well as sequenced-packet " |
| 344 |
"(since Linux 3.4) sockets: return the real size of the packet or datagram, " |
| 345 |
"even when it was longer than the passed buffer." |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
msgid "For use with Internet stream sockets, see B<tcp>(7)." |
| 352 |
msgstr "" |
| 353 |
|
| 354 |
#. type: TP |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
#, no-wrap |
| 358 |
msgid "B<MSG_WAITALL> (since Linux 2.2)" |
| 359 |
msgstr "" |
| 360 |
|
| 361 |
#. type: Plain text |
| 362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 363 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 364 |
msgid "" |
| 365 |
"This flag requests that the operation block until the full request is " |
| 366 |
"satisfied. However, the call may still return less data than requested if a " |
| 367 |
"signal is caught, an error or disconnect occurs, or the next data to be " |
| 368 |
"received is of a different type than that returned. This flag has no effect " |
| 369 |
"for datagram sockets." |
| 370 |
msgstr "" |
| 371 |
|
| 372 |
#. type: SS |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
#, no-wrap |
| 376 |
msgid "recvfrom()" |
| 377 |
msgstr "" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 381 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "" |
| 383 |
"B<recvfrom>() places the received message into the buffer I<buf>. The " |
| 384 |
"caller must specify the size of the buffer in I<size>." |
| 385 |
msgstr "" |
| 386 |
|
| 387 |
#. #-#-#-#-# archlinux: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 388 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 389 |
#. .I src_addr |
| 390 |
#. is filled in. |
| 391 |
#. .I src_addr |
| 392 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 393 |
#. filled in for stream sockets in the Internet domain.) |
| 394 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 395 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 396 |
#. type: Plain text |
| 397 |
#. #-#-#-#-# debian-trixie: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 398 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 399 |
#. .I src_addr |
| 400 |
#. is filled in. |
| 401 |
#. .I src_addr |
| 402 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 403 |
#. filled in for stream sockets in the Internet domain.) |
| 404 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 405 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 406 |
#. type: Plain text |
| 407 |
#. #-#-#-#-# debian-unstable: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 408 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 409 |
#. .I src_addr |
| 410 |
#. is filled in. |
| 411 |
#. .I src_addr |
| 412 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 413 |
#. filled in for stream sockets in the Internet domain.) |
| 414 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 415 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 416 |
#. type: Plain text |
| 417 |
#. #-#-#-#-# fedora-44: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 418 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 419 |
#. .I src_addr |
| 420 |
#. is filled in. |
| 421 |
#. .I src_addr |
| 422 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 423 |
#. filled in for stream sockets in the Internet domain.) |
| 424 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 425 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 426 |
#. type: Plain text |
| 427 |
#. #-#-#-#-# fedora-rawhide: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 428 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 429 |
#. .I src_addr |
| 430 |
#. is filled in. |
| 431 |
#. .I src_addr |
| 432 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 433 |
#. filled in for stream sockets in the Internet domain.) |
| 434 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 435 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 436 |
#. type: Plain text |
| 437 |
#. #-#-#-#-# mageia-cauldron: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 438 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 439 |
#. .I src_addr |
| 440 |
#. is filled in. |
| 441 |
#. .I src_addr |
| 442 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 443 |
#. filled in for stream sockets in the Internet domain.) |
| 444 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 445 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 446 |
#. type: Plain text |
| 447 |
#. #-#-#-#-# opensuse-leap-16-1: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 448 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 449 |
#. .I src_addr |
| 450 |
#. is filled in. |
| 451 |
#. .I src_addr |
| 452 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 453 |
#. filled in for stream sockets in the Internet domain.) |
| 454 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 455 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 456 |
#. type: Plain text |
| 457 |
#. #-#-#-#-# opensuse-tumbleweed: recv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 458 |
#. (Note: for datagram sockets in both the UNIX and Internet domains, |
| 459 |
#. .I src_addr |
| 460 |
#. is filled in. |
| 461 |
#. .I src_addr |
| 462 |
#. is also filled in for stream sockets in the UNIX domain, but is not |
| 463 |
#. filled in for stream sockets in the Internet domain.) |
| 464 |
#. [The above notes on AF_UNIX and AF_INET sockets apply as at |
| 465 |
#. Kernel 2.4.18. (MTK, 22 Jul 02)] |
| 466 |
#. type: Plain text |
| 467 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 468 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 469 |
msgid "" |
| 470 |
"If I<src_addr> is not NULL, and the underlying protocol provides the source " |
| 471 |
"address of the message, that source address is placed in the buffer pointed " |
| 472 |
"to by I<src_addr>. In this case, I<addrlen> is a value-result argument. " |
| 473 |
"Before the call, it should be initialized to the size of the buffer " |
| 474 |
"associated with I<src_addr>. Upon return, I<addrlen> is updated to contain " |
| 475 |
"the actual size of the source address. The returned address is truncated if " |
| 476 |
"the buffer provided is too small; in this case, I<addrlen> will return a " |
| 477 |
"value greater than was supplied to the call." |
| 478 |
msgstr "" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"If the caller is not interested in the source address, I<src_addr> and " |
| 485 |
"I<addrlen> should be specified as NULL." |
| 486 |
msgstr "" |
| 487 |
|
| 488 |
#. type: SS |
| 489 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 490 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 491 |
#, no-wrap |
| 492 |
msgid "recv()" |
| 493 |
msgstr "" |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
msgid "" |
| 499 |
"The B<recv>() call is normally used only on a I<connected> socket (see " |
| 500 |
"B<connect>(2)). It is equivalent to the call:" |
| 501 |
msgstr "" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 505 |
#: opensuse-tumbleweed |
| 506 |
#, no-wrap |
| 507 |
msgid "recvfrom(fd, buf, size, flags, NULL, NULL);\n" |
| 508 |
msgstr "" |
| 509 |
|
| 510 |
#. type: SS |
| 511 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 512 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 513 |
#, no-wrap |
| 514 |
msgid "recvmsg()" |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 520 |
msgid "" |
| 521 |
"The B<recvmsg>() call uses a I<msghdr> structure to minimize the number of " |
| 522 |
"directly supplied arguments. This structure is defined as follows in " |
| 523 |
"I<E<lt>sys/socket.hE<gt>>:" |
| 524 |
msgstr "" |
| 525 |
|
| 526 |
#. type: Plain text |
| 527 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 528 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, no-wrap |
| 530 |
msgid "" |
| 531 |
"struct msghdr {\n" |
| 532 |
" void *msg_name; /* Optional address */\n" |
| 533 |
" socklen_t msg_namelen; /* Size of address */\n" |
| 534 |
" struct iovec *msg_iov; /* Scatter/gather array */\n" |
| 535 |
" size_t msg_iovlen; /* # elements in msg_iov */\n" |
| 536 |
" void *msg_control; /* Ancillary data, see below */\n" |
| 537 |
" size_t msg_controllen; /* Ancillary data buffer size */\n" |
| 538 |
" int msg_flags; /* Flags on received message */\n" |
| 539 |
"};\n" |
| 540 |
msgstr "" |
| 541 |
|
| 542 |
#. type: Plain text |
| 543 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 544 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
msgid "" |
| 546 |
"The I<msg_name> field points to a caller-allocated buffer that is used to " |
| 547 |
"return the source address if the socket is unconnected. The caller should " |
| 548 |
"set I<msg_namelen> to the size of this buffer before this call; upon return " |
| 549 |
"from a successful call, I<msg_namelen> will contain the size of the returned " |
| 550 |
"address. If the application does not need to know the source address, " |
| 551 |
"I<msg_name> can be specified as NULL." |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
msgid "" |
| 558 |
"The fields I<msg_iov> and I<msg_iovlen> describe scatter-gather locations, " |
| 559 |
"as discussed in B<readv>(2)." |
| 560 |
msgstr "" |
| 561 |
|
| 562 |
#. type: Plain text |
| 563 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 564 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 565 |
msgid "" |
| 566 |
"The field I<msg_control>, which has size I<msg_controllen>, points to a " |
| 567 |
"buffer for other protocol control-related messages or miscellaneous " |
| 568 |
"ancillary data. When B<recvmsg>() is called, I<msg_controllen> should " |
| 569 |
"contain the size of the available buffer in I<msg_control>; upon return from " |
| 570 |
"a successful call it will contain the size of the control message sequence." |
| 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 "The messages are of the form:" |
| 577 |
msgstr "" |
| 578 |
|
| 579 |
#. type: Plain text |
| 580 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 581 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 582 |
#, no-wrap |
| 583 |
msgid "" |
| 584 |
"struct cmsghdr {\n" |
| 585 |
" size_t cmsg_len; /* Data byte count, including header\n" |
| 586 |
" (type is socklen_t in POSIX) */\n" |
| 587 |
" int cmsg_level; /* Originating protocol */\n" |
| 588 |
" int cmsg_type; /* Protocol-specific type */\n" |
| 589 |
"/* followed by\n" |
| 590 |
" unsigned char cmsg_data[]; */\n" |
| 591 |
"};\n" |
| 592 |
msgstr "" |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
msgid "" |
| 598 |
"Ancillary data should be accessed only by the macros defined in B<cmsg>(3)." |
| 599 |
msgstr "" |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
msgid "" |
| 605 |
"As an example, Linux uses this ancillary data mechanism to pass extended " |
| 606 |
"errors, IP options, or file descriptors over UNIX domain sockets. For " |
| 607 |
"further information on the use of ancillary data in various socket domains, " |
| 608 |
"see B<unix>(7) and B<ip>(7)." |
| 609 |
msgstr "" |
| 610 |
|
| 611 |
#. type: Plain text |
| 612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 613 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 614 |
msgid "" |
| 615 |
"The I<msg_flags> field in the I<msghdr> is set on return of B<recvmsg>(). " |
| 616 |
"It can contain several flags:" |
| 617 |
msgstr "" |
| 618 |
|
| 619 |
#. type: TP |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
#, no-wrap |
| 623 |
msgid "B<MSG_EOR>" |
| 624 |
msgstr "" |
| 625 |
|
| 626 |
#. type: Plain text |
| 627 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 628 |
#: opensuse-tumbleweed |
| 629 |
msgid "" |
| 630 |
"indicates end-of-record; the data returned completed a record (generally, " |
| 631 |
"used with sockets of type B<SOCK_SEQPACKET>)." |
| 632 |
msgstr "" |
| 633 |
|
| 634 |
#. type: TP |
| 635 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 636 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 637 |
#, no-wrap |
| 638 |
msgid "B<MSG_TRUNC>" |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#. type: Plain text |
| 642 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 643 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 644 |
msgid "" |
| 645 |
"indicates that the trailing portion of a datagram was discarded because the " |
| 646 |
"datagram was larger than the buffer supplied." |
| 647 |
msgstr "" |
| 648 |
|
| 649 |
#. type: TP |
| 650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 651 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 652 |
#, no-wrap |
| 653 |
msgid "B<MSG_CTRUNC>" |
| 654 |
msgstr "" |
| 655 |
|
| 656 |
#. type: Plain text |
| 657 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 658 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 659 |
msgid "" |
| 660 |
"indicates that some control data was discarded due to lack of space in the " |
| 661 |
"buffer for ancillary data." |
| 662 |
msgstr "" |
| 663 |
|
| 664 |
#. type: Plain text |
| 665 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 666 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 667 |
msgid "" |
| 668 |
"is returned to indicate that expedited or out-of-band data was received." |
| 669 |
msgstr "" |
| 670 |
|
| 671 |
#. type: TP |
| 672 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 673 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 674 |
#, no-wrap |
| 675 |
msgid "B<MSG_ERRQUEUE>" |
| 676 |
msgstr "" |
| 677 |
|
| 678 |
#. type: Plain text |
| 679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 680 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
msgid "" |
| 682 |
"indicates that no data was received but an extended error from the socket " |
| 683 |
"error queue." |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#. type: TP |
| 687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 688 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 689 |
#, no-wrap |
| 690 |
msgid "B<MSG_CMSG_CLOEXEC> (since Linux 2.6.23)" |
| 691 |
msgstr "" |
| 692 |
|
| 693 |
#. commit 4a19542e5f694cd408a32c3d9dc593ba9366e2d7 |
| 694 |
#. type: Plain text |
| 695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 696 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 697 |
msgid "" |
| 698 |
"indicates that B<MSG_CMSG_CLOEXEC> was specified in the I<flags> argument of " |
| 699 |
"B<recvmsg>()." |
| 700 |
msgstr "" |
| 701 |
|
| 702 |
#. type: SH |
| 703 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 704 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 705 |
#, no-wrap |
| 706 |
msgid "RETURN VALUE" |
| 707 |
msgstr "" |
| 708 |
|
| 709 |
#. type: Plain text |
| 710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 711 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 712 |
msgid "" |
| 713 |
"These calls return the number of bytes received, or -1 if an error " |
| 714 |
"occurred. In the event of an error, I<errno> is set to indicate the error." |
| 715 |
msgstr "" |
| 716 |
|
| 717 |
#. type: Plain text |
| 718 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 719 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 720 |
msgid "" |
| 721 |
"When a stream socket peer has performed an orderly shutdown, the return " |
| 722 |
"value will be 0 (the traditional \"end-of-file\" return)." |
| 723 |
msgstr "" |
| 724 |
|
| 725 |
#. type: Plain text |
| 726 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 727 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 728 |
msgid "" |
| 729 |
"Datagram sockets in various domains (e.g., the UNIX and Internet domains) " |
| 730 |
"permit zero-size datagrams. When such a datagram is received, the return " |
| 731 |
"value is 0." |
| 732 |
msgstr "" |
| 733 |
|
| 734 |
#. type: Plain text |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
msgid "" |
| 738 |
"The value 0 may also be returned if the requested number of bytes to receive " |
| 739 |
"from a stream socket was 0." |
| 740 |
msgstr "" |
| 741 |
|
| 742 |
#. type: SH |
| 743 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 744 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 745 |
#, no-wrap |
| 746 |
msgid "ERRORS" |
| 747 |
msgstr "" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 751 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 752 |
msgid "" |
| 753 |
"These are some standard errors generated by the socket layer. Additional " |
| 754 |
"errors may be generated and returned from the underlying protocol modules; " |
| 755 |
"see their manual pages." |
| 756 |
msgstr "" |
| 757 |
|
| 758 |
#. type: TP |
| 759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 760 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 761 |
#, no-wrap |
| 762 |
msgid "B<EAGAIN> or B<EWOULDBLOCK>" |
| 763 |
msgstr "" |
| 764 |
|
| 765 |
#. Actually EAGAIN on Linux |
| 766 |
#. type: Plain text |
| 767 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 768 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 769 |
msgid "" |
| 770 |
"The socket is marked nonblocking and the receive operation would block, or a " |
| 771 |
"receive timeout had been set and the timeout expired before data was " |
| 772 |
"received. POSIX.1 allows either error to be returned for this case, and " |
| 773 |
"does not require these constants to have the same value, so a portable " |
| 774 |
"application should check for both possibilities." |
| 775 |
msgstr "" |
| 776 |
|
| 777 |
#. type: TP |
| 778 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 779 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
#, no-wrap |
| 781 |
msgid "B<EBADF>" |
| 782 |
msgstr "" |
| 783 |
|
| 784 |
#. type: Plain text |
| 785 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 786 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 787 |
msgid "The argument I<sockfd> is an invalid file descriptor." |
| 788 |
msgstr "" |
| 789 |
|
| 790 |
#. type: TP |
| 791 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 792 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 793 |
#, no-wrap |
| 794 |
msgid "B<ECONNREFUSED>" |
| 795 |
msgstr "" |
| 796 |
|
| 797 |
#. type: Plain text |
| 798 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 799 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 800 |
msgid "" |
| 801 |
"A remote host refused to allow the network connection (typically because it " |
| 802 |
"is not running the requested service)." |
| 803 |
msgstr "" |
| 804 |
|
| 805 |
#. type: TP |
| 806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 807 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 808 |
#, no-wrap |
| 809 |
msgid "B<EFAULT>" |
| 810 |
msgstr "" |
| 811 |
|
| 812 |
#. type: Plain text |
| 813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 814 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 815 |
msgid "" |
| 816 |
"The receive buffer pointer(s) point outside the process's address space." |
| 817 |
msgstr "" |
| 818 |
|
| 819 |
#. type: TP |
| 820 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 821 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 822 |
#, no-wrap |
| 823 |
msgid "B<EINTR>" |
| 824 |
msgstr "" |
| 825 |
|
| 826 |
#. type: Plain text |
| 827 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 828 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 829 |
msgid "" |
| 830 |
"The receive was interrupted by delivery of a signal before any data was " |
| 831 |
"available; see B<signal>(7)." |
| 832 |
msgstr "" |
| 833 |
|
| 834 |
#. type: TP |
| 835 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 836 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 837 |
#, no-wrap |
| 838 |
msgid "B<EINVAL>" |
| 839 |
msgstr "" |
| 840 |
|
| 841 |
#. e.g., msg_namelen < 0 for recvmsg() or addrlen < 0 for recvfrom() |
| 842 |
#. type: Plain text |
| 843 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 844 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 845 |
msgid "Invalid argument passed." |
| 846 |
msgstr "" |
| 847 |
|
| 848 |
#. type: TP |
| 849 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 850 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 851 |
#, no-wrap |
| 852 |
msgid "B<ENOMEM>" |
| 853 |
msgstr "" |
| 854 |
|
| 855 |
#. type: Plain text |
| 856 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 857 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 858 |
msgid "Could not allocate memory for B<recvmsg>()." |
| 859 |
msgstr "" |
| 860 |
|
| 861 |
#. type: TP |
| 862 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 863 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 864 |
#, no-wrap |
| 865 |
msgid "B<ENOTCONN>" |
| 866 |
msgstr "" |
| 867 |
|
| 868 |
#. type: Plain text |
| 869 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 870 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 871 |
msgid "" |
| 872 |
"The socket is associated with a connection-oriented protocol and has not " |
| 873 |
"been connected (see B<connect>(2) and B<accept>(2))." |
| 874 |
msgstr "" |
| 875 |
|
| 876 |
#. type: TP |
| 877 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 878 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 879 |
#, no-wrap |
| 880 |
msgid "B<ENOTSOCK>" |
| 881 |
msgstr "" |
| 882 |
|
| 883 |
#. type: Plain text |
| 884 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 885 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 886 |
msgid "The file descriptor I<sockfd> does not refer to a socket." |
| 887 |
msgstr "" |
| 888 |
|
| 889 |
#. type: SH |
| 890 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 891 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 892 |
#, no-wrap |
| 893 |
msgid "VERSIONS" |
| 894 |
msgstr "" |
| 895 |
|
| 896 |
#. POSIX.1-2001, POSIX.1-2008 |
| 897 |
#. glibc bug for msg_controllen raised 12 Mar 2006 |
| 898 |
#. http://sourceware.org/bugzilla/show_bug.cgi?id=2448 |
| 899 |
#. The problem is an underlying kernel issue: the size of the |
| 900 |
#. __kernel_size_t type used to type these fields varies |
| 901 |
#. across architectures, but socklen_t is always 32 bits, |
| 902 |
#. as (at least with GCC) is int. |
| 903 |
#. type: Plain text |
| 904 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 905 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 906 |
msgid "" |
| 907 |
"According to POSIX.1, the I<msg_controllen> field of the I<msghdr> structure " |
| 908 |
"should be typed as I<socklen_t>, and the I<msg_iovlen> field should be typed " |
| 909 |
"as I<int>, but glibc currently types both as I<size_t>." |
| 910 |
msgstr "" |
| 911 |
|
| 912 |
#. type: SH |
| 913 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 914 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 915 |
#, no-wrap |
| 916 |
msgid "STANDARDS" |
| 917 |
msgstr "" |
| 918 |
|
| 919 |
#. type: Plain text |
| 920 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 921 |
#: opensuse-tumbleweed |
| 922 |
msgid "POSIX.1-2024." |
| 923 |
msgstr "" |
| 924 |
|
| 925 |
#. type: SH |
| 926 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 927 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 928 |
#, no-wrap |
| 929 |
msgid "HISTORY" |
| 930 |
msgstr "" |
| 931 |
|
| 932 |
#. type: Plain text |
| 933 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 934 |
#: opensuse-tumbleweed |
| 935 |
msgid "POSIX.1-2001, 4.2BSD." |
| 936 |
msgstr "" |
| 937 |
|
| 938 |
#. type: Plain text |
| 939 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 940 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 941 |
msgid "" |
| 942 |
"POSIX.1 describes only the B<MSG_OOB>, B<MSG_PEEK>, and B<MSG_WAITALL> flags." |
| 943 |
msgstr "" |
| 944 |
|
| 945 |
#. type: SH |
| 946 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 947 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 948 |
#, no-wrap |
| 949 |
msgid "NOTES" |
| 950 |
msgstr "" |
| 951 |
|
| 952 |
#. type: Plain text |
| 953 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 954 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 955 |
msgid "" |
| 956 |
"If a zero-size datagram is pending, B<read>(2) and B<recv>() with a " |
| 957 |
"I<flags> argument of zero provide different behavior. In this circumstance, " |
| 958 |
"B<read>(2) has no effect (the datagram remains pending), while B<recv>() " |
| 959 |
"consumes the pending datagram." |
| 960 |
msgstr "" |
| 961 |
|
| 962 |
#. type: Plain text |
| 963 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 964 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 965 |
msgid "" |
| 966 |
"See B<recvmmsg>(2) for information about a Linux-specific system call that " |
| 967 |
"can be used to receive multiple datagrams in a single call." |
| 968 |
msgstr "" |
| 969 |
|
| 970 |
#. type: SH |
| 971 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 972 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 973 |
#, no-wrap |
| 974 |
msgid "EXAMPLES" |
| 975 |
msgstr "" |
| 976 |
|
| 977 |
#. type: Plain text |
| 978 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 979 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 980 |
msgid "An example of the use of B<recvfrom>() is shown in B<getaddrinfo>(3)." |
| 981 |
msgstr "" |
| 982 |
|
| 983 |
#. type: SH |
| 984 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 985 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 986 |
#, no-wrap |
| 987 |
msgid "SEE ALSO" |
| 988 |
msgstr "" |
| 989 |
|
| 990 |
#. type: Plain text |
| 991 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 992 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 993 |
msgid "" |
| 994 |
"B<fcntl>(2), B<getsockopt>(2), B<read>(2), B<recvmmsg>(2), B<select>(2), " |
| 995 |
"B<shutdown>(2), B<socket>(2), B<cmsg>(3), B<sockatmark>(3), B<ip>(7), " |
| 996 |
"B<ipv6>(7), B<socket>(7), B<tcp>(7), B<udp>(7), B<unix>(7)" |
| 997 |
msgstr "" |
| 998 |
|
| 999 |
#. type: TH |
| 1000 |
#: debian-trixie |
| 1001 |
#, no-wrap |
| 1002 |
msgid "2024-05-02" |
| 1003 |
msgstr "" |
| 1004 |
|
| 1005 |
#. type: TH |
| 1006 |
#: debian-trixie |
| 1007 |
#, no-wrap |
| 1008 |
msgid "Linux man-pages 6.9.1" |
| 1009 |
msgstr "" |
| 1010 |
|
| 1011 |
#. type: Plain text |
| 1012 |
#: debian-trixie |
| 1013 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1014 |
msgstr "" |
| 1015 |
|
| 1016 |
#. type: Plain text |
| 1017 |
#: debian-trixie |
| 1018 |
#, no-wrap |
| 1019 |
msgid "" |
| 1020 |
"B<ssize_t recv(int >I<sockfd>B<, void >I<buf>B<[.>I<len>B<], size_t >I<len>B<,>\n" |
| 1021 |
"B< int >I<flags>B<);>\n" |
| 1022 |
"B<ssize_t recvfrom(int >I<sockfd>B<, void >I<buf>B<[restrict .>I<len>B<], size_t >I<len>B<,>\n" |
| 1023 |
"B< int >I<flags>B<,>\n" |
| 1024 |
"B< struct sockaddr *_Nullable restrict >I<src_addr>B<,>\n" |
| 1025 |
"B< socklen_t *_Nullable restrict >I<addrlen>B<);>\n" |
| 1026 |
"B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n" |
| 1027 |
msgstr "" |
| 1028 |
|
| 1029 |
#. type: Plain text |
| 1030 |
#: debian-trixie |
| 1031 |
#, no-wrap |
| 1032 |
msgid "recv(sockfd, buf, len, flags);\n" |
| 1033 |
msgstr "" |
| 1034 |
|
| 1035 |
#. type: Plain text |
| 1036 |
#: debian-trixie |
| 1037 |
#, no-wrap |
| 1038 |
msgid "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n" |
| 1039 |
msgstr "" |
| 1040 |
|
| 1041 |
#. type: Plain text |
| 1042 |
#: debian-trixie |
| 1043 |
msgid "" |
| 1044 |
"All three calls return the length of the message on successful completion. " |
| 1045 |
"If a message is too long to fit in the supplied buffer, excess bytes may be " |
| 1046 |
"discarded depending on the type of socket the message is received from." |
| 1047 |
msgstr "" |
| 1048 |
|
| 1049 |
#. type: Plain text |
| 1050 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1051 |
msgid "" |
| 1052 |
"Enables nonblocking operation; if the operation would block, the call fails " |
| 1053 |
"with the error B<EAGAIN> or B<EWOULDBLOCK>. This provides similar behavior " |
| 1054 |
"to setting the B<O_NONBLOCK> flag (via the B<fcntl>(2) B<F_SETFL> " |
| 1055 |
"operation), but differs in that B<MSG_DONTWAIT> is a per-call option, " |
| 1056 |
"whereas B<O_NONBLOCK> is a setting on the open file description (see " |
| 1057 |
"B<open>(2)), which will affect all threads in the calling process as well as " |
| 1058 |
"other processes that hold file descriptors referring to the same open file " |
| 1059 |
"description." |
| 1060 |
msgstr "" |
| 1061 |
|
| 1062 |
#. commit 9f6f9af7694ede6314bed281eec74d588ba9474f |
| 1063 |
#. type: Plain text |
| 1064 |
#: debian-trixie |
| 1065 |
msgid "" |
| 1066 |
"For raw (B<AF_PACKET>), Internet datagram (since Linux 2.4.27/2.6.8), " |
| 1067 |
"netlink (since Linux 2.6.22), and UNIX datagram as well as sequenced-packet " |
| 1068 |
"(since Linux 3.4) sockets: return the real length of the packet or datagram, " |
| 1069 |
"even when it was longer than the passed buffer." |
| 1070 |
msgstr "" |
| 1071 |
|
| 1072 |
#. type: Plain text |
| 1073 |
#: debian-trixie |
| 1074 |
msgid "" |
| 1075 |
"B<recvfrom>() places the received message into the buffer I<buf>. The " |
| 1076 |
"caller must specify the size of the buffer in I<len>." |
| 1077 |
msgstr "" |
| 1078 |
|
| 1079 |
#. type: Plain text |
| 1080 |
#: debian-trixie |
| 1081 |
#, no-wrap |
| 1082 |
msgid "recvfrom(fd, buf, len, flags, NULL, 0);\n" |
| 1083 |
msgstr "" |
| 1084 |
|
| 1085 |
#. type: Plain text |
| 1086 |
#: debian-trixie |
| 1087 |
#, no-wrap |
| 1088 |
msgid "" |
| 1089 |
"struct msghdr {\n" |
| 1090 |
" void *msg_name; /* Optional address */\n" |
| 1091 |
" socklen_t msg_namelen; /* Size of address */\n" |
| 1092 |
" struct iovec *msg_iov; /* Scatter/gather array */\n" |
| 1093 |
" size_t msg_iovlen; /* # elements in msg_iov */\n" |
| 1094 |
" void *msg_control; /* Ancillary data, see below */\n" |
| 1095 |
" size_t msg_controllen; /* Ancillary data buffer len */\n" |
| 1096 |
" int msg_flags; /* Flags on received message */\n" |
| 1097 |
"};\n" |
| 1098 |
msgstr "" |
| 1099 |
|
| 1100 |
#. type: Plain text |
| 1101 |
#: debian-trixie |
| 1102 |
msgid "" |
| 1103 |
"The I<msg_name> field points to a caller-allocated buffer that is used to " |
| 1104 |
"return the source address if the socket is unconnected. The caller should " |
| 1105 |
"set I<msg_namelen> to the size of this buffer before this call; upon return " |
| 1106 |
"from a successful call, I<msg_namelen> will contain the length of the " |
| 1107 |
"returned address. If the application does not need to know the source " |
| 1108 |
"address, I<msg_name> can be specified as NULL." |
| 1109 |
msgstr "" |
| 1110 |
|
| 1111 |
#. type: Plain text |
| 1112 |
#: debian-trixie |
| 1113 |
msgid "" |
| 1114 |
"The field I<msg_control>, which has length I<msg_controllen>, points to a " |
| 1115 |
"buffer for other protocol control-related messages or miscellaneous " |
| 1116 |
"ancillary data. When B<recvmsg>() is called, I<msg_controllen> should " |
| 1117 |
"contain the length of the available buffer in I<msg_control>; upon return " |
| 1118 |
"from a successful call it will contain the length of the control message " |
| 1119 |
"sequence." |
| 1120 |
msgstr "" |
| 1121 |
|
| 1122 |
#. type: Plain text |
| 1123 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1124 |
msgid "" |
| 1125 |
"indicates end-of-record; the data returned completed a record (generally " |
| 1126 |
"used with sockets of type B<SOCK_SEQPACKET>)." |
| 1127 |
msgstr "" |
| 1128 |
|
| 1129 |
#. type: Plain text |
| 1130 |
#: debian-trixie |
| 1131 |
msgid "" |
| 1132 |
"Datagram sockets in various domains (e.g., the UNIX and Internet domains) " |
| 1133 |
"permit zero-length datagrams. When such a datagram is received, the return " |
| 1134 |
"value is 0." |
| 1135 |
msgstr "" |
| 1136 |
|
| 1137 |
#. type: Plain text |
| 1138 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1139 |
msgid "POSIX.1-2008." |
| 1140 |
msgstr "" |
| 1141 |
|
| 1142 |
#. type: Plain text |
| 1143 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1144 |
msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)." |
| 1145 |
msgstr "" |
| 1146 |
|
| 1147 |
#. type: Plain text |
| 1148 |
#: debian-trixie |
| 1149 |
msgid "" |
| 1150 |
"If a zero-length datagram is pending, B<read>(2) and B<recv>() with a " |
| 1151 |
"I<flags> argument of zero provide different behavior. In this circumstance, " |
| 1152 |
"B<read>(2) has no effect (the datagram remains pending), while B<recv>() " |
| 1153 |
"consumes the pending datagram." |
| 1154 |
msgstr "" |
| 1155 |
|
| 1156 |
#. type: TH |
| 1157 |
#: fedora-44 fedora-rawhide |
| 1158 |
#, no-wrap |
| 1159 |
msgid "2024-11-17" |
| 1160 |
msgstr "" |
| 1161 |
|
| 1162 |
#. type: TH |
| 1163 |
#: fedora-44 fedora-rawhide |
| 1164 |
#, no-wrap |
| 1165 |
msgid "Linux man-pages 6.13" |
| 1166 |
msgstr "" |
| 1167 |
|
| 1168 |
#. type: Plain text |
| 1169 |
#: fedora-44 fedora-rawhide |
| 1170 |
#, no-wrap |
| 1171 |
msgid "" |
| 1172 |
"B<ssize_t recv(int >I<sockfd>B<, void >I<buf>B<[.>I<size>B<], size_t >I<size>B<,>\n" |
| 1173 |
"B< int >I<flags>B<);>\n" |
| 1174 |
"B<ssize_t recvfrom(int >I<sockfd>B<, void >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 1175 |
"B< int >I<flags>B<,>\n" |
| 1176 |
"B< struct sockaddr *_Nullable restrict >I<src_addr>B<,>\n" |
| 1177 |
"B< socklen_t *_Nullable restrict >I<addrlen>B<);>\n" |
| 1178 |
"B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n" |
| 1179 |
msgstr "" |
| 1180 |
|
| 1181 |
#. type: Plain text |
| 1182 |
#: fedora-44 fedora-rawhide |
| 1183 |
#, no-wrap |
| 1184 |
msgid "recvfrom(fd, buf, size, flags, NULL, 0);\n" |
| 1185 |
msgstr "" |
| 1186 |
|
| 1187 |
#. type: TH |
| 1188 |
#: mageia-cauldron |
| 1189 |
#, no-wrap |
| 1190 |
msgid "Linux man-pages 6.17" |
| 1191 |
msgstr "" |
| 1192 |
|
| 1193 |
#. type: TH |
| 1194 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1195 |
#, no-wrap |
| 1196 |
msgid "Linux man-pages (unreleased)" |
| 1197 |
msgstr "" |