Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ThreadServer Server_Multi_Client
Diff: Server.h
- Revision:
- 0:a5fdd089d5c6
- Child:
- 3:edde051ab024
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Server.h Tue Jun 11 20:43:21 2013 +0000 @@ -0,0 +1,44 @@ +/* +** 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