MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / NetworkAddress

Method NetworkAddress

test/799.cpp:31–36  ·  view source on GitHub ↗

* Create a network address based on a unresolved host and port * @param hostname the unresolved hostname * @param port the port * @param family the address family */

Source from the content-addressed store, hash-verified

29 * @param family the address family
30 */
31 NetworkAddress(const char *hostname = "", uint16 port = 0, int family = AF_UNSPEC)
32 {
33 memset(&this->address, 0, sizeof(this->address));
34 this->address.ss_family = family;
35 this->SetPort(port);
36 }
37
38 uint16 GetPort() const;
39 void SetPort(uint16 port);

Callers

nothing calls this directly

Calls 2

SetPortMethod · 0.95
memsetFunction · 0.85

Tested by

no test coverage detected