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

Method SocketAddress

src/utils/socket.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34///////////////////////////////////////////////////////////SocketAddress
35
36SocketAddress::SocketAddress() {
37 _addr.addr.sa_family = AF_INET;
38 _addr.in.sin_port = 0;
39 _addr.in.sin_addr.s_addr = htonl(INADDR_NONE);
40}
41
42SocketAddress::SocketAddress(unsigned short port) {
43 setAddress(port);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected