?? type_ghttpclient.html
字號:
<html><head><title>Generated Documentation</title></head><body> <image src="headerimage.png"> <br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GHttpClient</b></big></big></big><br><br></td><td> This class allows you to get files using the HTTP protocol</td></tr></table><br><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GHttpClient</b></big>()<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GHttpClient</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">void <big><b>Abort</b></big>()<br>Status* <big><b>CheckStatus</b></big>(float* pfProgress)<br><div style="margin-left: 80px;"><font color=brown> See what the status of the download is. If everything is going okay, it will return "Downloading" while downloading and "Done" when the file is available. pfProgress is an optional parameter. If it is non-NULL, it will return a number between 0 and 1 that indicates the ratio of content (not including header data) already downloaded.</font></div><br>char* <big><b>DropData</b></big>(unsigned int** pnSize)<br><div style="margin-left: 80px;"><font color=brown> Just like GetData except it forgets about the buffer so you'll have to delete it yourself.</font></div><br>bool <big><b>Get</b></big>(const char* szUrl, bool actuallyDownloadTheData)<br><div style="margin-left: 80px;"><font color=brown> Send a request to get a file. Returns immediately (before the file is downloaded).</font></div><br>char* <big><b>GetData</b></big>(unsigned int* pnSize)<br><div style="margin-left: 80px;"><font color=brown> Don't call this until the status is "Done". It returns a pointer to the file that was downloaded. The buffer will be deleted when this object is deleted, so if you want to retain the buffer, call DropData instead.</font></div><br>char* <big><b>GetUrlModified</b></big>()<br><div style="margin-left: 80px;"><font color=brown>get the date string of this </font></div><br>void <big><b>OnLoseConnection</b></big>()<br><div style="margin-left: 80px;"><font color=brown> This is called when the connection is lost</font></div><br>void <big><b>SetClientName</b></big>(const char* szClientName)<br></div><br><big><big><i>Protected</i></big></big><br><div style="margin-left: 40px;">void <big><b>GimmeWhatYouGot</b></big>()<br>void <big><b>ProcessBody</b></big>(const unsigned char* szData, int nSize)<br>void <big><b>ProcessChunkBody</b></big>(const unsigned char* szData, int nSize)<br>void <big><b>ProcessHeader</b></big>(const unsigned char* szData, int nSize)<br><div style="margin-left: 80px;"><font color=brown> called by the consumer, when an abort is desired. </font></div><br></div><br></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -