proxygen
folly::netops::detail::SocketFileDescriptorMap Struct Reference

#include <SocketFileDescriptorMap.h>

Static Public Member Functions

static int close (int fd) noexcept
 
static int fdToSocket (int fd) noexcept
 
static int socketToFd (int sock) noexcept
 

Detailed Description

Definition at line 30 of file SocketFileDescriptorMap.h.

Member Function Documentation

static int folly::netops::detail::SocketFileDescriptorMap::close ( int  fd)
inlinestaticnoexcept

Definition at line 38 of file SocketFileDescriptorMap.h.

References folly::netops::close().

Referenced by folly::netops::close(), and folly::netops::TEST().

38  {
39  return ::close(fd);
40  }
int close(NetworkSocket s)
Definition: NetOps.cpp:90
static int folly::netops::detail::SocketFileDescriptorMap::fdToSocket ( int  fd)
inlinestaticnoexcept

Definition at line 42 of file SocketFileDescriptorMap.h.

Referenced by folly::NetworkSocket::fromFd(), folly::getLibeventFd(), and folly::netops::TEST().

42  {
43  return fd;
44  }
static int folly::netops::detail::SocketFileDescriptorMap::socketToFd ( int  sock)
inlinestaticnoexcept

Definition at line 45 of file SocketFileDescriptorMap.h.

Referenced by folly::libeventFdToFd(), folly::netops::TEST(), and folly::NetworkSocket::toFd().

45  {
46  return sock;
47  }

The documentation for this struct was generated from the following file: