MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / connectTo

Method connectTo

src/socket/SocketAttr.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 bool SocketAttr::connectTo() {
107 if (::connect(_fd, reinterpret_cast<sockaddr *>(&_addr), sizeof(_addr)) == -1) {
108 if (errno != ECONNREFUSED && errno != EINPROGRESS) {
109 PERROR("connect");
110 }
111 return false;
112 }
113 return true;
114 }
115
116 bool SocketAttr::acceptConnection(SocketClient &client, bool showLogInfo) {
117 // check if we have a client?

Callers 1

initClientSocketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected