enet server adress
If i were going to display the server adress of an enet host, how would i do it. I know that 'address.host' stores it, but how could you convert this into a string.
From the documentation:
Hope this helps,
Jackson Allan
Quote:
int enet_address_get_host (const ENetAddress * address, char * hostName, size_t nameLength);
Attempts to do a reverse lookup of the host field in the address parameter.
If successful, the name of the host is placed in the string described by
hostName and nameLength. The host name is always null-delimited and will
not exceed nameLength in length. Returns 0 on success and -1 on failure.
Hope this helps,
Jackson Allan
-----------Autumn Fog - A 2D Action Wargame
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement