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
Server.h
- Committer:
- lemniskata
- Date:
- 2013-06-13
- Revision:
- 3:edde051ab024
- Parent:
- 0:a5fdd089d5c6
File content as of revision 3:edde051ab024:
/* ** 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; }; void startServerThread(void const *port); void startServer(int port); #endif