MCPcopy Create free account
hub / github.com/PhoneVR-Developers/PhoneVR / SockAddrToUint32

Function SockAddrToUint32

code/common/src/PVRSocketUtils.cpp:159–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157typedef unsigned long uint32;
158
159uint32 SockAddrToUint32(struct sockaddr *a) {
160 return ((a) && (a->sa_family == AF_INET)) ? ntohl(((struct sockaddr_in *) a)->sin_addr.s_addr)
161 : 0;
162}
163
164// convert a numeric IP address into its string representation
165void Inet_NtoA(uint32 addr, char *ipbuf) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected