MCPcopy Create free account
hub / github.com/defold/defold / GetHostname

Function GetHostname

engine/dlib/src/dlib/socket_win32.cpp:655–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653 }
654
655 Result GetHostname(char* hostname, int hostname_length)
656 {
657 int r = gethostname(hostname, hostname_length);
658 if (hostname_length > 0)
659 hostname[hostname_length - 1] = '\0';
660 return r == 0 ? RESULT_OK : NATIVETORESULT(DM_SOCKET_ERRNO);
661 }
662
663 Result GetLocalAddress(Address* address)
664 {

Callers 3

GetLocalAddressFunction · 0.70
NewFunction · 0.70
InitMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected