Advertisement

enet server adress

Started by October 26, 2004 02:21 PM
1 comment, last by eal 20 years, 3 months ago
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:

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
Advertisement
thanks, i thought i had searched through all the documentation

This topic is closed to new replies.

Advertisement