#include <stddef.h>
#include <stdio.h>
#include <http.h>
#include <network.h>
#include <shell.h>
#include <tcp.h>
#include <thread.h>
thread httpServer |
( |
int |
netDescrp, |
|
|
int |
gentcpdev |
|
) |
| |
HTTP server thread
- Parameters
-
host | IP address of interface on which to listen |
gentcpdev | the allocated tcp device for general listening |
- Returns
- OK or SYSERR
thread httpServerKickStart |
( |
int |
netDescrp | ) |
|
HTTP server kick start thread
- Returns
- OK or SYSERR
thread killHttpServer |
( |
uint |
httpdev, |
|
|
tid_typ |
shelltid, |
|
|
uint |
tcpdev |
|
) |
| |
Kills HTTP server spawned threads and close devices
- Parameters
-
httpdev | HTTP device to close |
shelltid | shell thread ID to kill |
tcpdev | TCP device to close |
servertid | server thread ID to kill |
- Returns
- thread return status