MCPcopy Create free account
hub / github.com/catboost/catboost / Connect

Method Connect

util/network/sock.h:467–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465 }
466
467 int Connect(const ISockAddr* addr) {
468 int ret = addr->ResolveAddr();
469 if (ret < 0) {
470 return -errno;
471 }
472
473 ret = connect((SOCKET) * this, addr->SockAddr(), addr->Len());
474 if (ret < 0) {
475 return -errno;
476 }
477
478 return ret;
479 }
480
481 int Listen(int backlog) {
482 int ret = listen((SOCKET) * this, backlog);

Callers 2

RunInetStreamTestFunction · 0.45
RunLocalStreamTestFunction · 0.45

Calls 3

ResolveAddrMethod · 0.45
SockAddrMethod · 0.45
LenMethod · 0.45

Tested by

no test coverage detected