您好!
我有一个具有 cgi 函数的服务器。 如果调用了 cgi 函数、我会发送 html 代码、该函数以1结尾。
现在、我想在任务中发送 html 代码。 遗憾的是、它不起作用。 请允许有人告诉我、为什么我很感谢任何帮助
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);
}
}