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.
Fork of libMiMic by
Diff: mbed/Httpd.cpp
- Revision:
- 19:33b9ba0859ee
- Parent:
- 17:f29e1ca90e3d
- Child:
- 45:63d6aa80e26d
--- a/mbed/Httpd.cpp Fri Apr 26 14:55:24 2013 +0000
+++ b/mbed/Httpd.cpp Sat Apr 27 13:31:57 2013 +0000
@@ -2,6 +2,8 @@
#include "HttpdConnection.h"
namespace MiMic
{
+ char Httpd::_shared_buf[SIZE_OF_HTTP_BUF];
+
void Httpd::onRequestHandler(NyLPC_TcHttpdConnection_t* i_connection)
{
HttpdConnection c(i_connection);
@@ -21,4 +23,13 @@
{
NyLPC_cHttpd_loop((NyLPC_TcHttpd_t*)(&this->_inst));
}
+ void Httpd::lock()
+ {
+ NyLPC_cHttpd_lock((NyLPC_TcHttpd_t*)(&this->_inst));
+ }
+ void Httpd::unlock()
+ {
+ NyLPC_cHttpd_unlock((NyLPC_TcHttpd_t*)(&this->_inst));
+ }
+
}
\ No newline at end of file
