MCPcopy Create free account
hub / github.com/chen3feng/toft / Socket_PollWriteable

Function Socket_PollWriteable

system/net/os_socket.h:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100inline int Socket_PollWriteable(SOCKET fd, struct timeval* tv)
101{
102 int timeout = tv ? (tv->tv_sec * 1000 + tv->tv_usec / 1000) : -1;
103 pollfd pfd;
104 pfd.fd = fd;
105 pfd.events = POLLOUT;
106 return poll(&pfd, 1, timeout);
107}
108
109
110#define SOCKET_ERROR_CODE(e) e

Callers 1

WaitWriteableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected