updated some build files

This commit is contained in:
2013-04-02 12:09:01 +00:00
parent 8363f28e47
commit 15924c72cd
8 changed files with 995 additions and 590 deletions

View File

@ -1729,16 +1729,24 @@ static int dir_read (qse_httpd_t* httpd, qse_ubi_t handle, qse_httpd_dirent_t* d
}
/* ------------------------------------------------------------------- */
#if !defined(SHUT_RDWR)
# define SHUT_RDWR 2
#endif
static void client_close (
qse_httpd_t* httpd, qse_httpd_client_t* client)
{
#if defined(_WIN32)
/* TODO: */
shutdown (client->handle.i, SHUT_RDWR);
closesocket (client->handle.i);
#elif defined(__OS2__)
/* TODO: */
shutdown (client->handle.i, SHUT_RDWR);
soclose (client->handle.i);
#elif defined(__DOS__)
/* TODO: */
#else
shutdown (client->handle.i, SHUT_RDWR);
QSE_CLOSE (client->handle.i);
#endif
}
@ -1746,12 +1754,14 @@ static void client_close (
static void client_shutdown (
qse_httpd_t* httpd, qse_httpd_client_t* client)
{
#if defined(__DOS__)
/* TODO */
#elif defined(SHUT_RDWR)
#if defined(_WIN32)
shutdown (client->handle.i, SHUT_RDWR);
#elif defined(__OS2__)
shutdown (client->handle.i, SHUT_RDWR);
#elif defined(__DOS__)
/* TODO: */
#else
shutdown (client->handle.i, 2);
shutdown (client->handle.i, SHUT_RDWR);
#endif
}

View File

@ -210,7 +210,9 @@ static qse_httpd_task_t* entask_status (
const qse_mchar_t* extrapst = QSE_MT("");
const qse_mchar_t* extraval = QSE_MT("");
qse_mchar_t text[1024] = QSE_MT(""); /* TODO: make this buffer dynamic or scalable */
qse_mchar_t text[1024]; /* TODO: make this buffer dynamic or scalable */
text[0] = QSE_MT('\0');
msg = qse_httpstatustombs (code);
switch (code)