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: cpp/ModUrl.cpp
- Revision:
- 5:6d67db3875cb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cpp/ModUrl.cpp Fri Apr 05 08:11:49 2013 +0000
@@ -0,0 +1,29 @@
+#include "ModUrl.h"
+#include "HttpdConnection.h"
+
+namespace MiMic
+{
+ ModUrl::ModUrl()
+ {
+ }
+ ModUrl::~ModUrl()
+ {
+ }
+ bool ModUrl::execute(HttpdConnection& i_connection,char* o_url_buf,int i_buf_len,int* o_method_type)
+ {
+ NyLPC_TcModUrl_t mod;
+ if(i_buf_len<1){
+ return false;
+ }
+ NyLPC_cModUrl_initialize(&mod);
+ if(!NyLPC_cModUrl_execute(&mod,i_connection._ref_inst,o_url_buf,i_buf_len)){
+ *o_url_buf='\0';
+ }
+ if(o_method_type!=NULL){
+ *o_method_type=NyLPC_cModUrl_getMethod(&mod);
+ }
+ NyLPC_cModUrl_finalize(&mod);
+ return true;
+ }
+
+}
\ No newline at end of file
