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

Method WaitWriteable

system/net/socket.cpp:154–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool Socket::WaitWriteable(struct timeval* tv, bool restart)
155{
156 for (;;)
157 {
158 int n = Socket_PollWriteable(Handle(), tv);
159 if (n != SOCKET_ERROR_RETURN)
160 {
161 return n > 0;
162 }
163 else if (!IsInterruptedAndRestart(restart))
164 {
165 CheckError(n, "WaitWriteable");
166 break;
167 }
168 }
169 return false;
170}
171
172bool Socket::CheckError(int result, const char* info) const
173{

Callers 1

TEST_FFunction · 0.80

Calls 1

Socket_PollWriteableFunction · 0.85

Tested by 1

TEST_FFunction · 0.64