diff options
author | Lee Salzman <[email protected]> | 2017-05-06 14:55:03 -0400 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2017-05-06 14:55:03 -0400 |
commit | 3ae5af4548d4d0fbf9335f415d14897ce231a5a1 (patch) | |
tree | f998314a5e7d1388718d8d120a7e42f52b12cfdf /include | |
parent | f46fee0acc8e243b2b6910b09693f93c3aad775f (diff) | |
download | enet-3ae5af4548d4d0fbf9335f415d14897ce231a5a1.tar.gz enet-3ae5af4548d4d0fbf9335f415d14897ce231a5a1.zip |
add portable enet_address_set_host_ip that can properly parse broadcast address
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 650b199..c762453 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -509,6 +509,17 @@ ENET_API int enet_socketset_select (ENetSocket, ENetSocketSet *, ENetSock /** @defgroup Address ENet address functions @{ */ + +/** Attempts to parse the printable form of the IP address in the parameter hostName + and sets the host field in the address parameter if successful. + @param address destination to store the parsed IP address + @param hostName IP address to parse + @retval 0 on success + @retval < 0 on failure + @returns the address of the given hostName in address on success +*/ +ENET_API int enet_address_set_host_ip (ENetAddress * address, const char * hostName); + /** Attempts to resolve the host named by the parameter hostName and sets the host field in the address parameter if successful. @param address destination to store resolved address |