Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cCmdFindMyIP.h
Go to the documentation of this file.
1 //
4 //
5 
6 
7 #ifndef _INC_cCmdFindMyIP_H
8 #define _INC_cCmdFindMyIP_H
9 #ifndef NO_PRAGMA_ONCE
10 #pragma once
11 #endif
12 
13 #include "GrayX.h"
14 
15 namespace GrayX
16 {
17  class cCmdFindMyIP : public GrayXCmd
18  {
20  // Find my external ip then post it to DreamHost? or update a dynamic ip name ? DDNS ?
21  // http://stackoverflow.com/questions/3097589/getting-my-public-ip-via-api
22  // "ipinfo.io/ip"
23 
24  static const char* k_URLS[];
25 
26  public:
27  cCmdFindMyIP();
28  virtual ~cCmdFindMyIP();
29 
30  virtual HRESULT DoCmd(const FILECHAR_t* pszArgs) override;
31  };
32 
33 }
34 
35 #endif
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: GrayX.h:43
Definition: cCmdFindMyIP.h:18
virtual ~cCmdFindMyIP()
Definition: cCmdFindMyIP.cpp:29
virtual HRESULT DoCmd(const FILECHAR_t *pszArgs) override
Definition: cCmdFindMyIP.cpp:33
cCmdFindMyIP()
Definition: cCmdFindMyIP.cpp:25
Definition: GrayX.cpp:52
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22