w3server.h File Reference

Main functions to set up a server. To set up a server, simply call w3StartServer(int portnumber). The rest will hopefully be done by the server itself. More...

#include <w3types.h>
#include <w3comm.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  w3Server
struct  w3ServerConnection

Functions

w3ServerConnectionw3ServerAccept (w3Server *server)
boolean w3ServerInit (w3Server *server)
boolean w3ServerClose (w3Server *server)
boolean w3ServerDisconnect (w3ServerConnection *con)
char * w3ServerGetToken (char *str, int *idx)
char * w3ServerGetPath (char *str)
boolean w3ServerSendFile (char *path, w3ServerConnection *con)
boolean w3ServerSendError (int errorcode, w3ServerConnection *con)
boolean w3ServerServeClient (w3Server *server, w3ServerConnection *con)
boolean w3StartServer (int port)
void w3ServerMessage (const char *msg)


Detailed Description

Main functions to set up a server. To set up a server, simply call w3StartServer(int portnumber). The rest will hopefully be done by the server itself.


Generated on Thu Jul 6 15:37:31 2006 for w3server by  doxygen 1.4.6