TCP Server that handles multiple client requests at the same time by using multiple threads

Dependents:   ThreadServer Server_Multi_Client

Server.h

Committer:
lemniskata
Date:
2013-06-29
Revision:
4:c57a998796ae
Parent:
0:a5fdd089d5c6
Child:
3:edde051ab024

File content as of revision 4:c57a998796ae:

/*
** File name:            Server.h
** Descriptions:        TCP server that handles multiple client requests in separate threads
**
**------------------------------------------------------------------------------------------------------
** Created by:            Ivan Shindev
** Created date:        06/11/2013
** Version:                1.0
** Descriptions:        The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:            
** Modified date:    
** Version:
** Descriptions:        
********************************************************************************************************/

#ifndef __Server_H 
#define __Server_H

#include "EthernetInterface.h"
#include "mbed.h"


class Server {
public:

   
    Server(int _port,int _max_number_of_clients);
    
    /** Start listening for client requests 
     * 
     * 
     */
    int Start();
 

protected:
    int _port;
    int _max_number_of_clients;

};

#endif