touched up httpd

This commit is contained in:
2014-07-22 17:58:11 +00:00
parent ad0d80fff5
commit 5703aaa8a5
9 changed files with 391 additions and 308 deletions

View File

@ -52,6 +52,20 @@ void qse_clearnwad (qse_nwad_t* nwad, qse_nwad_type_t type)
nwad->type = type;
}
void qse_setnwadport (qse_nwad_t* nwad, qse_uint16_t port)
{
switch (nwad->type)
{
case QSE_NWAD_IN4:
nwad->u.in4.port = port;
break;
case QSE_NWAD_IN6:
nwad->u.in4.port = port;
break;
}
}
int qse_mbstonwad (const qse_mchar_t* str, qse_nwad_t* nwad)
{
return qse_mbsntonwad (str, qse_mbslen(str), nwad);