MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / IPSocketToNetAddress

Function IPSocketToNetAddress

Engine/source/platform/platformNet.cpp:627–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627static void IPSocketToNetAddress(const struct sockaddr_in *sockAddr, NetAddress *address)
628{
629 address->type = NetAddress::IPAddress;
630 address->port = ntohs(sockAddr->sin_port);
631 dMemcpy(&address->address.ipv4.netNum[0], &sockAddr->sin_addr, 4);
632}
633
634// ipv6 version of name routines
635

Callers 5

getSocketAddressFunction · 0.85
processMethod · 0.85
processListenSocketMethod · 0.85
acceptMethod · 0.85
stringToAddressMethod · 0.85

Calls 1

dMemcpyFunction · 0.50

Tested by

no test coverage detected