MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / get_ready

Method get_ready

extra/yassl/src/socket_wrapper.cpp:115–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114
115uint Socket::get_ready() const
116{
117#ifdef _WIN32
118 unsigned long ready = 0;
119 ioctlsocket(socket_, FIONREAD, &ready);
120#else
121 /*
122 64-bit Solaris requires the variable passed to
123 FIONREAD be a 32-bit value.
124 */
125 unsigned int ready = 0;
126 ioctl(socket_, FIONREAD, &ready);
127#endif
128
129 return ready;
130}
131
132
133void Socket::set_transport_ptr(void *ptr)

Callers 1

DoProcessReplyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected