ex
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
--- /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;
+};
