Hi,
I have a server with a cgi function. If the cgi function is called, I send an html code and the function ends with 1.
Now I want to send the html code within a task. Unfortunately it doesn't work. Could someone tell me why I am grateful for any help
static int mainPage_Update(SOCKET htmlSock, int ContentLength, char *pArgs )
{
Mailbox_post(mailboxServerHandle, &htmlSock, BIOS_NO_WAIT);
//sendMainPage(htmlSock);
return 1;
}
void serverTask(void)
{
SOCKET msg;
while(1)
{
Mailbox_pend(mailboxServerHandle, &msg, BIOS_WAIT_FOREVER);
sendMainPage(msg);
}
}