proxygen
|
#include <cstdint>
#include <folly/net/NetworkSocket.h>
#include <folly/portability/IOVec.h>
#include <folly/portability/SysTypes.h>
#include <folly/portability/Windows.h>
#include <netdb.h>
#include <poll.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/un.h>
Go to the source code of this file.
Classes | |
struct | folly::netops::PollDescriptor |
Namespaces | |
folly | |
—— Concurrent Priority Queue Implementation —— | |
folly::netops | |
Macros | |
#define | SO_EE_ORIGIN_ZEROCOPY 5 |
#define | SO_EE_CODE_ZEROCOPY_COPIED 1 |
#define | SO_ZEROCOPY 60 |
#define | MSG_ZEROCOPY 0x4000000 |
#define | SOL_UDP 17 |
#define | ETH_MAX_MTU 0xFFFFU |
#define | UDP_SEGMENT 103 |
#define | UDP_MAX_SEGMENTS (1 << 6UL) |
Functions | |
NetworkSocket | folly::netops::accept (NetworkSocket s, sockaddr *addr, socklen_t *addrlen) |
int | folly::netops::bind (NetworkSocket s, const sockaddr *name, socklen_t namelen) |
int | folly::netops::close (NetworkSocket s) |
int | folly::netops::connect (NetworkSocket s, const sockaddr *name, socklen_t namelen) |
int | folly::netops::getpeername (NetworkSocket s, sockaddr *name, socklen_t *namelen) |
int | folly::netops::getsockname (NetworkSocket s, sockaddr *name, socklen_t *namelen) |
int | folly::netops::getsockopt (NetworkSocket s, int level, int optname, void *optval, socklen_t *optlen) |
int | folly::netops::inet_aton (const char *cp, in_addr *inp) |
int | folly::netops::listen (NetworkSocket s, int backlog) |
int | folly::netops::poll (PollDescriptor fds[], nfds_t nfds, int timeout) |
ssize_t | folly::netops::recv (NetworkSocket s, void *buf, size_t len, int flags) |
ssize_t | folly::netops::recvfrom (NetworkSocket s, void *buf, size_t len, int flags, sockaddr *from, socklen_t *fromlen) |
ssize_t | folly::netops::recvmsg (NetworkSocket s, msghdr *message, int flags) |
ssize_t | folly::netops::send (NetworkSocket s, const void *buf, size_t len, int flags) |
ssize_t | folly::netops::sendto (NetworkSocket s, const void *buf, size_t len, int flags, const sockaddr *to, socklen_t tolen) |
ssize_t | folly::netops::sendmsg (NetworkSocket socket, const msghdr *message, int flags) |
int | folly::netops::setsockopt (NetworkSocket s, int level, int optname, const void *optval, socklen_t optlen) |
int | folly::netops::shutdown (NetworkSocket s, int how) |
NetworkSocket | folly::netops::socket (int af, int type, int protocol) |
int | folly::netops::socketpair (int domain, int type, int protocol, NetworkSocket sv[2]) |
int | folly::netops::set_socket_non_blocking (NetworkSocket s) |
int | folly::netops::set_socket_close_on_exec (NetworkSocket s) |
#define MSG_ZEROCOPY 0x4000000 |
Definition at line 55 of file NetOps.h.
Referenced by folly::AsyncSocket::SendMsgParamsCallback::getDefaultFlags().
#define SO_EE_CODE_ZEROCOPY_COPIED 1 |
Definition at line 47 of file NetOps.h.
Referenced by folly::AsyncSocket::processZeroCopyMsg().
#define SO_EE_ORIGIN_ZEROCOPY 5 |
Definition at line 43 of file NetOps.h.
Referenced by folly::AsyncSocket::isZeroCopyMsg().
#define SO_ZEROCOPY 60 |
Definition at line 51 of file NetOps.h.
Referenced by folly::AsyncServerSocket::setZeroCopy(), and folly::AsyncSocket::setZeroCopy().
#define SOL_UDP 17 |
Definition at line 59 of file NetOps.h.
Referenced by folly::AsyncUDPSocket::getGSO(), folly::AsyncUDPSocket::setGSO(), and folly::AsyncUDPSocket::writev().
#define UDP_SEGMENT 103 |
Definition at line 67 of file NetOps.h.
Referenced by folly::AsyncUDPSocket::getGSO(), folly::AsyncUDPSocket::setGSO(), and folly::AsyncUDPSocket::writev().