changed mio_svc_htts_start() to accept mio_dev_sck_bind_t* instead of mio_skad_t*

This commit is contained in:
2020-07-19 18:55:35 +00:00
parent fc74064984
commit 18eda3a6b5
6 changed files with 31 additions and 24 deletions

View File

@ -1837,6 +1837,15 @@ int mio_dev_sck_shutdown (mio_dev_sck_t* dev, int how)
return shutdown(dev->hnd, how);
}
int mio_dev_sck_sendfileok (mio_dev_sck_t* dev)
{
#if defined(USE_SSL)
return !(dev->ssl);
#else
return 1;
#endif
}
/* ========================================================================= */
mio_uint16_t mio_checksum_ip (const void* hdr, mio_oow_t len)