MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / 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.70
processMethod · 0.70
processListenSocketMethod · 0.70
acceptMethod · 0.70
stringToAddressMethod · 0.70

Calls 1

dMemcpyFunction · 0.50

Tested by

no test coverage detected