MCPcopy Create free account
hub / github.com/Tencent/phxpaxos / initHandle

Method initHandle

src/utils/socket.cpp:197–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void SocketBase::initHandle(int family) {
198 _handle = ::socket(family, SOCK_STREAM, 0);
199 if (_handle == -1) {
200 throw SocketException("socket error");
201 }
202}
203
204int SocketBase::getFamily() const {
205 return _family;

Callers

nothing calls this directly

Calls 1

SocketExceptionClass · 0.85

Tested by

no test coverage detected