MCPcopy Create free account
hub / github.com/crossuo/crossuo / tcp_select

Function tcp_select

src/Sockets.cpp:168–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168int tcp_select(tcp_socket socket)
169{
170 auto h = socket_fd(socket);
171 fd_set rfds;
172 struct timeval tv = { 0, 0 };
173 FD_ZERO(&rfds);
174 FD_SET(h, &rfds);
175 return select((int)h, &rfds, nullptr, nullptr, &tv);
176}
177
178int tcp_recv(tcp_socket socket, unsigned char *data, size_t max_size)
179{

Callers 1

ReadyReadMethod · 0.85

Calls 1

socket_fdFunction · 0.85

Tested by

no test coverage detected