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: TLS_cyassl-Example TLS_cyassl-Example2 HTTPSClientExample2
Fork of TLS_cyassl by
Revision 6:c12f49c210c2, committed 2013-09-18
- Comitter:
- feb11
- Date:
- Wed Sep 18 15:18:51 2013 +0000
- Parent:
- 5:29069dd9abfc
- Commit message:
- added some comments
Changed in this revision
| TLSServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TLSServer.h Wed Sep 18 09:06:36 2013 +0000
+++ b/TLSServer.h Wed Sep 18 15:18:51 2013 +0000
@@ -5,6 +5,7 @@
#include "cyassl/ssl.h"
#include "TLSConnection.h"
+
class TLSServer : public Socket
{
public :
@@ -12,8 +13,17 @@
TLSServer();
~TLSServer();
+ /** Initialize the server.
+ It listens on port 443, init CyaSSL, load certificates and create CyaSSL context.
+
+ \return True if the initializations is completed with success, false otherwise.
+ */
bool init();
+ /** Accept incoming connection
+
+ \return True if it managed to create successfully a new connection, false otherwise.
+ */
bool accept(TLSConnection &con);
