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 "
—— Concurrent Priority Queue Implementation ——
folly::Optional< PskKeyExchangeMode > mode
int close(NetworkSocket s)
int socketpair(int domain, int type, int protocol, NetworkSocket sv[2])
SocketPair(Mode mode=NONBLOCKING)