MCPcopy Create free account
hub / github.com/PHZ76/RtspServer / GetSocketAddr

Method GetSocketAddr

src/net/SocketUtil.cpp:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127int SocketUtil::GetSocketAddr(SOCKET sockfd, struct sockaddr_in* addr)
128{
129 socklen_t addrlen = sizeof(struct sockaddr_in);
130 return getsockname(sockfd, (struct sockaddr*)addr, &addrlen);
131}
132
133uint16_t SocketUtil::GetPeerPort(SOCKET sockfd)
134{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected