MCPcopy Create free account
hub / github.com/chen3feng/toft / Assign

Method Assign

system/net/socket_address.cpp:70–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool SocketAddressInet4::Assign(unsigned int ip, unsigned short port)
71{
72 m_address.sin_addr.s_addr = ip;
73 m_address.sin_port = htons(port);
74 return true;
75}
76
77bool SocketAddressInet4::Assign(const IpAddress& ip, unsigned short port)
78{

Callers

nothing calls this directly

Calls 2

ParseSocketAddress4Function · 0.85
ToInAddrMethod · 0.80

Tested by

no test coverage detected