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 mbed-os-example-mbed5-blinky by
Diff: DuerOS-Light-SDK-v1.1.0/duer-os-light/src/iot-baidu-ota/url.h
- Revision:
- 47:9e361da97763
diff -r 183cfc59d4e4 -r 9e361da97763 DuerOS-Light-SDK-v1.1.0/duer-os-light/src/iot-baidu-ota/url.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DuerOS-Light-SDK-v1.1.0/duer-os-light/src/iot-baidu-ota/url.h Tue Jul 18 16:54:45 2017 +0800
@@ -0,0 +1,22 @@
+#pragma once
+class URL
+{
+public:
+ URL(const char* url);
+ ~URL();
+ bool valid()const{return __valid;};
+ const char* scheme()const{return __scheme;};
+ const char* host()const{return __host;};
+ unsigned short port()const{return __port;};
+ const char* path()const{return __path;};
+
+ const char* url()const{return __url;};
+private:
+ bool parse(const char* url);
+ bool __valid;
+ char *__scheme;
+ char *__host;
+ unsigned short __port;
+ char *__path;
+ char * __url;
+};
