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
cpp/ModUrl.cpp
- Committer:
- nyatla
- Date:
- 2013-04-05
- Revision:
- 5:6d67db3875cb
File content as of revision 5:6d67db3875cb:
#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; } }