⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 type_ghttpserver.html

📁 一个非常有用的开源代码
💻 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>GHttpServer</b></big></big></big><br><br></td><td> This class allows you to implement a simple HTTP daemon</td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>ParseParams</b></big>(<a href="type_GStringHeap.html">GStringHeap</a>* pStringHeap, <a href="type_GConstStringHashTable.html">GConstStringHashTable</a>* pTable, const char* szParams)<br><div style="margin-left: 80px;"><font color=brown> Parses the parameters in a URL and puts them in a table</font></div><br>void <big><b>UnescapeUrl</b></big>(char* szOut, const char* szIn)<br><div style="margin-left: 80px;"><font color=brown> Unescapes a URL. (i.e. replace "%20" with " ", etc.)</font></div><br></div><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GHttpServer</b></big>(int nPort)<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GHttpServer</b></big>()<br></div><br><big><big><i>Abstracts</i></big></big><br><div style="margin-left: 40px;">void <big><b>DoGet</b></big>(const char* szUrl, const char* szParams, <a href="type_GQueue.html">GQueue</a>* pResponse)<br></div><br><big><big><i>Virtual (non-public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>OnProcessLine</b></big>(int nConnection, const char* szLine)<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">bool <big><b>Process</b></big>()<br><div style="margin-left: 80px;"><font color=brown> You should call this method constantly inside the main loop. It returns true if it did anything, and false if it didn't, so if it returns false you may want to sleep for a little while.</font></div><br>void <big><b>SetContentType</b></big>(const char* szContentType)<br></div><br><big><big><i>Protected</i></big></big><br><div style="margin-left: 40px;">void <big><b>MakeResponse</b></big>(int nConnection, GHttpServerBuffer* pClient)<br>void <big><b>ProcessLine</b></big>(int nConnection, GHttpServerBuffer* pClient, const char* szLine)<br></div><br></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -