added hcl_get_sockaddr_info()

This commit is contained in:
2018-03-25 02:53:03 +00:00
parent 0e2c892d8b
commit e5fbf1967f
3 changed files with 70 additions and 20 deletions

View File

@ -636,6 +636,16 @@ HCL_EXPORT int hcl_bcharstosckaddr (
# define hcl_oochars_to_sckaddr hcl_bchars_to_sckaddr
#endif
/**
* The hcl_get_sckaddr_info() function returns the socket family.
* if \a scklen is not #HCL_NULL, it also sets the actual address length
* in the memory pointed to by it.
*/
HCL_EXPORT int hcl_get_sckaddr_info (
const hcl_sckaddr_t* sckaddr,
hcl_scklen_t* scklen
);
#if defined(__cplusplus)
}
#endif