Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
httpServer.c File Reference
#include <stddef.h>
#include <stdio.h>
#include <http.h>
#include <network.h>
#include <shell.h>
#include <tcp.h>
#include <thread.h>

Functions

thread killHttpServer (uint, tid_typ, uint)
 
thread httpServer (int, int)
 
thread httpServerKickStart (int netDescrp)
 

Function Documentation

thread httpServer ( int  netDescrp,
int  gentcpdev 
)

HTTP server thread

Parameters
hostIP address of interface on which to listen
gentcpdevthe 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
httpdevHTTP device to close
shelltidshell thread ID to kill
tcpdevTCP device to close
servertidserver thread ID to kill
Returns
thread return status