MCPcopy Create free account
hub / github.com/ceph/ceph / win_socketpair

Function win_socketpair

src/common/compat.cc:512–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512int win_socketpair(int socks[2]) {
513 int r = 0;
514 for (int i = 0; i < 15; i++) {
515 r = _win_socketpair(socks);
516 if (r && WSAGetLastError() == WSAEADDRINUSE) {
517 sleep(2);
518 continue;
519 }
520 else {
521 break;
522 }
523 }
524 return r;
525}
526
527unsigned get_page_size() {
528 SYSTEM_INFO system_info;

Callers 2

Event.ccFile · 0.85
admin_socket.ccFile · 0.85

Calls 1

_win_socketpairFunction · 0.85

Tested by

no test coverage detected