enhanced hio_svc_htts_start() to accept multiple binding addresses.

added hio_skad_init_for_qx()
defined HIO_AF_QX
changed hio-skad to defined HIO_AF_UNIX to a fake value if it's not defined.
fixed skad conversion functions to handle unix addresses  more consistently
This commit is contained in:
2021-08-06 03:23:48 +00:00
parent 7710d57968
commit 63cdf7b3bb
9 changed files with 370 additions and 128 deletions

View File

@ -52,6 +52,13 @@
# define HIO_SIZEOF_SKAD_T HIO_SIZEOF_STRUCT_SOCKADDR_UN
#endif
#if !defined(HIO_AF_UNIX)
/* this is a fake value */
# define HIO_AF_UNIX (65534)
#endif
/* this is HIO specific. No AF_XXXX definitions must overlap with this */
#define HIO_AF_QX (65530)
struct hio_skad_t
{
hio_uint8_t data[HIO_SIZEOF_SKAD_T];
@ -173,6 +180,10 @@ HIO_EXPORT void hio_skad_init_for_eth (
hio_ethad_t* ethad
);
HIO_EXPORT void hio_skad_init_for_qx (
hio_skad_t* skad
);
HIO_EXPORT int hio_skad_family (
const hio_skad_t* skad
);