#include <SocketPair.h>
Definition at line 21 of file SocketPair.h.
Enumerator |
---|
BLOCKING |
|
NONBLOCKING |
|
Definition at line 23 of file SocketPair.h.
Definition at line 29 of file SocketPair.cpp.
References fds_, NONBLOCKING, and folly::netops::socketpair().
31 throw std::runtime_error(folly::to<std::string>(
32 "test::SocketPair: failed create socket pair", errno));
36 if (fcntl(
fds_[0], F_SETFL, O_NONBLOCK) != 0) {
37 throw std::runtime_error(folly::to<std::string>(
38 "test::SocketPair: failed to set non-blocking " 42 if (fcntl(
fds_[1], F_SETFL, O_NONBLOCK) != 0) {
43 throw std::runtime_error(folly::to<std::string>(
44 "test::SocketPair: failed to set non-blocking "
folly::Optional< PskKeyExchangeMode > mode
int socketpair(int domain, int type, int protocol, NetworkSocket sv[2])
folly::SocketPair::~SocketPair |
( |
| ) |
|
void folly::SocketPair::closeFD0 |
( |
| ) |
|
void folly::SocketPair::closeFD1 |
( |
| ) |
|
int folly::SocketPair::extractFD |
( |
int |
index | ) |
|
|
inline |
int folly::SocketPair::extractFD0 |
( |
| ) |
|
|
inline |
int folly::SocketPair::extractFD1 |
( |
| ) |
|
|
inline |
int folly::SocketPair::operator[] |
( |
int |
index | ) |
const |
|
inline |
int folly::SocketPair::fds_[2] |
|
private |
The documentation for this class was generated from the following files: