22 namespace portability {
44 bool is_fh_socket(
int fh);
45 SOCKET fd_to_socket(
int fd);
46 int socket_to_fd(SOCKET
s);
47 int translate_wsa_error(
int wsaErr);
52 int accept(
int s,
struct sockaddr*
addr, socklen_t* addrlen);
53 int inet_aton(
const char* cp,
struct in_addr* inp);
59 int bind(
int s,
const struct sockaddr*
name, socklen_t namelen);
60 int connect(
int s,
const struct sockaddr* name, socklen_t namelen);
61 int getpeername(
int s,
struct sockaddr* name, socklen_t* namelen);
62 int getsockname(
int s,
struct sockaddr* name, socklen_t* namelen);
63 int getsockopt(
int s,
int level,
int optname,
void* optval, socklen_t* optlen);
64 const char* inet_ntop(
int af,
const void* src,
char* dst, socklen_t
size);
65 int listen(
int s,
int backlog);
66 int poll(
struct pollfd fds[], nfds_t nfds,
int timeout);
67 ssize_t
recv(
int s,
void* buf,
size_t len,
int flags);
73 struct sockaddr*
from,
75 ssize_t
send(
int s,
const void* buf,
size_t len,
int flags);
95 int socket(
int af,
int type,
int protocol);
100 int getsockopt(
int s,
int level,
int optname,
char* optval, socklen_t* optlen);
101 ssize_t
recv(
int s,
char* buf,
int len,
int flags);
102 ssize_t
recv(
int s,
void* buf,
int len,
int flags);
108 struct sockaddr* from,
115 struct sockaddr* from,
117 ssize_t
recvmsg(
int s,
struct msghdr* message,
int fl);
118 ssize_t
send(
int s,
const char* buf,
int len,
int flags);
119 ssize_t
send(
int s,
const void* buf,
int len,
int flags);
ssize_t recvfrom(NetworkSocket s, void *buf, size_t len, int flags, sockaddr *from, socklen_t *fromlen)
int connect(NetworkSocket s, const sockaddr *name, socklen_t namelen)
ssize_t sendmsg(NetworkSocket socket, const msghdr *message, int flags)
int inet_aton(const char *cp, in_addr *inp)
int setsockopt(NetworkSocket s, int level, int optname, const void *optval, socklen_t optlen)
—— Concurrent Priority Queue Implementation ——
int getsockname(NetworkSocket s, sockaddr *name, socklen_t *namelen)
constexpr auto size(C const &c) -> decltype(c.size())
ssize_t sendto(NetworkSocket s, const void *buf, size_t len, int flags, const sockaddr *to, socklen_t tolen)
std::enable_if< detail::is_chrono_conversion< Tgt, Src >::value, Tgt >::type to(const Src &value)
int getsockopt(NetworkSocket s, int level, int optname, void *optval, socklen_t *optlen)
ssize_t send(NetworkSocket s, const void *buf, size_t len, int flags)
NetworkSocket socket(int af, int type, int protocol)
int listen(NetworkSocket s, int backlog)
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::operators::from_fn from
ssize_t recvmsg(NetworkSocket s, msghdr *message, int flags)
int poll(PollDescriptor fds[], nfds_t nfds, int timeout)
int bind(NetworkSocket s, const sockaddr *name, socklen_t namelen)
int getpeername(NetworkSocket s, sockaddr *name, socklen_t *namelen)
ssize_t recv(NetworkSocket s, void *buf, size_t len, int flags)
ThreadPoolListHook * addr
int socketpair(int domain, int type, int protocol, NetworkSocket sv[2])
NetworkSocket accept(NetworkSocket s, sockaddr *addr, socklen_t *addrlen)