# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:39+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "recv" msgstr "" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2025-10-29" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "recv, recvfrom, recvmsg - receive a message from a socket" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Esys/socket.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "Bsize_t size;\n" "B< int >IB<, void >IB<[>IB<], size_t >IB<,>\n" "B< int >IB<);>\n" "Bsize_t size;\n" "B< int >IB<, void >IB<[restrict >IB<], size_t >IB<,>\n" "B< int >IB<,>\n" "B< struct sockaddr *_Nullable restrict >IB<,>\n" "B< socklen_t *_Nullable restrict >IB<);>\n" "BIB<, struct msghdr *>IB<, int >IB<);>\n" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B(), B(), and B() calls are used to receive " "messages from a socket. They may be used to receive data on both " "connectionless and connection-oriented sockets. This page first describes " "common features of all three system calls, and then describes the " "differences between the calls." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The only difference between B() and B(2) is the presence of " "I. With a zero I argument, B() is generally equivalent " "to B(2) (but see NOTES). Also, the following call" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "recv(sockfd, buf, size, flags);\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "is equivalent to" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "recvfrom(sockfd, buf, size, flags, NULL, NULL);\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "All three calls return the size of the message on successful completion. If " "a message is too long to fit in the supplied buffer, excess bytes may be " "discarded depending on the type of socket the message is received from." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If no messages are available at the socket, the receive calls wait for a " "message to arrive, unless the socket is nonblocking (see B(2)), in " "which case the value -1 is returned and I is set to B or " "B. The receive calls normally return any data available, up to " "the requested amount, rather than waiting for receipt of the full amount " "requested." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An application can use B(2), " "B(2), B(2), B(3), B(3), B(7), " "B(7), B(7), B(7), B(7), B(7)" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "2024-05-02" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "" #. type: Plain text #: debian-trixie #, no-wrap msgid "" "BIB<, void >IB<[.>IB<], size_t >IB<,>\n" "B< int >IB<);>\n" "BIB<, void >IB<[restrict .>IB<], size_t >IB<,>\n" "B< int >IB<,>\n" "B< struct sockaddr *_Nullable restrict >IB<,>\n" "B< socklen_t *_Nullable restrict >IB<);>\n" "BIB<, struct msghdr *>IB<, int >IB<);>\n" msgstr "" #. type: Plain text #: debian-trixie #, no-wrap msgid "recv(sockfd, buf, len, flags);\n" msgstr "" #. type: Plain text #: debian-trixie #, no-wrap msgid "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n" msgstr "" #. type: Plain text #: debian-trixie msgid "" "All three calls return the length of the message on successful completion. " "If a message is too long to fit in the supplied buffer, excess bytes may be " "discarded depending on the type of socket the message is received from." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Enables nonblocking operation; if the operation would block, the call fails " "with the error B or B. This provides similar behavior " "to setting the B flag (via the B(2) B " "operation), but differs in that B is a per-call option, " "whereas B is a setting on the open file description (see " "B(2)), which will affect all threads in the calling process as well as " "other processes that hold file descriptors referring to the same open file " "description." msgstr "" #. commit 9f6f9af7694ede6314bed281eec74d588ba9474f #. type: Plain text #: debian-trixie msgid "" "For raw (B), Internet datagram (since Linux 2.4.27/2.6.8), " "netlink (since Linux 2.6.22), and UNIX datagram as well as sequenced-packet " "(since Linux 3.4) sockets: return the real length of the packet or datagram, " "even when it was longer than the passed buffer." msgstr "" #. type: Plain text #: debian-trixie msgid "" "B() places the received message into the buffer I. The " "caller must specify the size of the buffer in I." msgstr "" #. type: Plain text #: debian-trixie #, no-wrap msgid "recvfrom(fd, buf, len, flags, NULL, 0);\n" msgstr "" #. type: Plain text #: debian-trixie #, no-wrap msgid "" "struct msghdr {\n" " void *msg_name; /* Optional address */\n" " socklen_t msg_namelen; /* Size of address */\n" " struct iovec *msg_iov; /* Scatter/gather array */\n" " size_t msg_iovlen; /* # elements in msg_iov */\n" " void *msg_control; /* Ancillary data, see below */\n" " size_t msg_controllen; /* Ancillary data buffer len */\n" " int msg_flags; /* Flags on received message */\n" "};\n" msgstr "" #. type: Plain text #: debian-trixie msgid "" "The I field points to a caller-allocated buffer that is used to " "return the source address if the socket is unconnected. The caller should " "set I to the size of this buffer before this call; upon return " "from a successful call, I will contain the length of the " "returned address. If the application does not need to know the source " "address, I can be specified as NULL." msgstr "" #. type: Plain text #: debian-trixie msgid "" "The field I, which has length I, points to a " "buffer for other protocol control-related messages or miscellaneous " "ancillary data. When B() is called, I should " "contain the length of the available buffer in I; upon return " "from a successful call it will contain the length of the control message " "sequence." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "indicates end-of-record; the data returned completed a record (generally " "used with sockets of type B)." msgstr "" #. type: Plain text #: debian-trixie msgid "" "Datagram sockets in various domains (e.g., the UNIX and Internet domains) " "permit zero-length datagrams. When such a datagram is received, the return " "value is 0." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "POSIX.1-2008." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)." msgstr "" #. type: Plain text #: debian-trixie msgid "" "If a zero-length datagram is pending, B(2) and B() with a " "I argument of zero provide different behavior. In this circumstance, " "B(2) has no effect (the datagram remains pending), while B() " "consumes the pending datagram." msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-11-17" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, void >IB<[.>IB<], size_t >IB<,>\n" "B< int >IB<);>\n" "BIB<, void >IB<[restrict .>IB<], size_t >IB<,>\n" "B< int >IB<,>\n" "B< struct sockaddr *_Nullable restrict >IB<,>\n" "B< socklen_t *_Nullable restrict >IB<);>\n" "BIB<, struct msghdr *>IB<, int >IB<);>\n" msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "recvfrom(fd, buf, size, flags, NULL, 0);\n" msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr ""