For a question in forum this is a working example, there will be the example that is not working

Dependencies:   mbed

Fork of eth_v13 by Heiko Greiner

httpServer.h

Committer:
hggerdd
Date:
2014-03-27
Revision:
4:a10e3d1bdb17
Parent:
3:79dc3337d9da

File content as of revision 4:a10e3d1bdb17:

#ifndef HTTPSERVER_H_
#define HTTPSERVER_H_

#include "TCPSocket.h"
#include "html.h"

class httpServer
{
    TCPSocket tcpSocket;
    int _port;
    Timer timeout;
    
    int counter;

public:
    httpServer(int socket);
    void start(int port);
    void close();
    void poll();
    void httpApp();
};

#endif