api_windows.go 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. //go:build windows
  2. package yu_hpsocket
  3. import yu_sys "gogs.qqck.cn/s/tools/sys"
  4. var modhpsocket yu_sys.Module
  5. var (
  6. HP_Client_StartWithBindAddressAndLocalPort yu_sys.Address
  7. HP_Client_Stop yu_sys.Address
  8. HP_Client_Wait yu_sys.Address
  9. HP_Client_Send yu_sys.Address
  10. HP_Client_IsSecure yu_sys.Address
  11. HP_Client_SetExtra yu_sys.Address
  12. HP_Client_GetExtra yu_sys.Address
  13. HP_Client_HasStarted yu_sys.Address
  14. HP_Client_GetState yu_sys.Address
  15. HP_Client_GetLastError yu_sys.Address
  16. HP_Client_GetLastErrorDesc yu_sys.Address
  17. HP_Client_GetConnectionID yu_sys.Address
  18. HP_Client_GetLocalAddress yu_sys.Address
  19. HP_Client_GetRemoteHost yu_sys.Address
  20. HP_Client_GetPendingDataLength yu_sys.Address
  21. HP_Client_SetFreeBufferPoolSize yu_sys.Address
  22. HP_Client_SetFreeBufferPoolHold yu_sys.Address
  23. HP_Client_GetFreeBufferPoolSize yu_sys.Address
  24. HP_Client_GetFreeBufferPoolHold yu_sys.Address
  25. HP_SSLClient_SetupSSLContext yu_sys.Address
  26. HP_SSLClient_SetupSSLContextByMemory yu_sys.Address
  27. HP_SSLClient_CleanupSSLContext yu_sys.Address
  28. HP_SSLClient_StartSSLHandShake yu_sys.Address
  29. HP_SSLClient_SetSSLAutoHandShake yu_sys.Address
  30. HP_SSLClient_IsSSLAutoHandShake yu_sys.Address
  31. HP_SSLClient_SetSSLCipherList yu_sys.Address
  32. HP_SSLClient_GetSSLCipherList yu_sys.Address
  33. HP_SSLClient_GetSSLSessionInfo yu_sys.Address
  34. HP_Client_IsPauseReceive yu_sys.Address
  35. HP_Client_IsConnected yu_sys.Address
  36. HP_Client_SetReuseAddressPolicy yu_sys.Address
  37. HP_Client_GetReuseAddressPolicy yu_sys.Address
  38. HP_Client_PauseReceive yu_sys.Address
  39. HP_Set_FN_Client_OnPrepareConnect yu_sys.Address
  40. HP_Set_FN_Client_OnConnect yu_sys.Address
  41. HP_Set_FN_Client_OnHandShake yu_sys.Address
  42. HP_Set_FN_Client_OnSend yu_sys.Address
  43. HP_Set_FN_Client_OnReceive yu_sys.Address
  44. HP_Set_FN_Client_OnClose yu_sys.Address
  45. Create_HP_TcpClientListener yu_sys.Address
  46. Destroy_HP_TcpClientListener yu_sys.Address
  47. Create_HP_SSLClient yu_sys.Address
  48. Destroy_HP_SSLClient yu_sys.Address
  49. Create_HP_TcpClient yu_sys.Address
  50. Destroy_HP_TcpClient yu_sys.Address
  51. HP_TcpClient_SetSocketBufferSize yu_sys.Address
  52. HP_TcpClient_SetKeepAliveTime yu_sys.Address
  53. HP_TcpClient_SetKeepAliveInterval yu_sys.Address
  54. HP_TcpClient_SetNoDelay yu_sys.Address
  55. HP_TcpClient_GetSocketBufferSize yu_sys.Address
  56. HP_TcpClient_GetKeepAliveTime yu_sys.Address
  57. HP_TcpClient_GetKeepAliveInterval yu_sys.Address
  58. HP_TcpClient_IsNoDelay yu_sys.Address
  59. Create_HP_TcpPackClientListener yu_sys.Address
  60. Destroy_HP_TcpPackClientListener yu_sys.Address
  61. Create_HP_SSLPackClient yu_sys.Address
  62. Destroy_HP_SSLPackClient yu_sys.Address
  63. Create_HP_TcpPackClient yu_sys.Address
  64. Destroy_HP_TcpPackClient yu_sys.Address
  65. HP_TcpPackClient_SetMaxPackSize yu_sys.Address
  66. HP_TcpPackClient_SetPackHeaderFlag yu_sys.Address
  67. HP_TcpPackClient_GetMaxPackSize yu_sys.Address
  68. HP_TcpPackClient_GetPackHeaderFlag yu_sys.Address
  69. HP_Server_Start yu_sys.Address
  70. HP_Server_Stop yu_sys.Address
  71. HP_Server_Wait yu_sys.Address
  72. HP_Server_Send yu_sys.Address
  73. HP_Server_IsSecure yu_sys.Address
  74. HP_Server_Disconnect yu_sys.Address
  75. HP_Server_DisconnectLongConnections yu_sys.Address
  76. HP_Server_DisconnectSilenceConnections yu_sys.Address
  77. HP_Server_SetConnectionExtra yu_sys.Address
  78. HP_Server_GetConnectionExtra yu_sys.Address
  79. HP_Server_HasStarted yu_sys.Address
  80. HP_Server_GetState yu_sys.Address
  81. HP_Server_GetLastError yu_sys.Address
  82. HP_Server_GetLastErrorDesc yu_sys.Address
  83. HP_Server_GetPendingDataLength yu_sys.Address
  84. HP_Server_GetConnectionCount yu_sys.Address
  85. HP_Server_GetAllConnectionIDs yu_sys.Address
  86. HP_Server_GetConnectPeriod yu_sys.Address
  87. HP_Server_GetSilencePeriod yu_sys.Address
  88. HP_Server_GetListenAddress yu_sys.Address
  89. HP_Server_GetLocalAddress yu_sys.Address
  90. HP_Server_GetRemoteAddress yu_sys.Address
  91. HP_Server_SetSendPolicy yu_sys.Address
  92. HP_Server_SetOnSendSyncPolicy yu_sys.Address
  93. HP_Server_SetFreeSocketObjLockTime yu_sys.Address
  94. HP_Server_SetFreeSocketObjPool yu_sys.Address
  95. HP_Server_SetFreeBufferObjPool yu_sys.Address
  96. HP_Server_SetFreeSocketObjHold yu_sys.Address
  97. HP_Server_SetFreeBufferObjHold yu_sys.Address
  98. HP_Server_SetMaxConnectionCount yu_sys.Address
  99. HP_Server_SetWorkerThreadCount yu_sys.Address
  100. HP_Server_SetMarkSilence yu_sys.Address
  101. HP_Server_GetSendPolicy yu_sys.Address
  102. HP_Server_GetOnSendSyncPolicy yu_sys.Address
  103. HP_Server_GetFreeSocketObjLockTime yu_sys.Address
  104. HP_Server_GetFreeSocketObjPool yu_sys.Address
  105. HP_Server_GetFreeBufferObjPool yu_sys.Address
  106. HP_Server_GetFreeSocketObjHold yu_sys.Address
  107. HP_Server_GetFreeBufferObjHold yu_sys.Address
  108. HP_Server_GetMaxConnectionCount yu_sys.Address
  109. HP_Server_GetWorkerThreadCount yu_sys.Address
  110. HP_Server_IsMarkSilence yu_sys.Address
  111. HP_SSLServer_SetupSSLContext yu_sys.Address
  112. HP_SSLServer_SetupSSLContextByMemory yu_sys.Address
  113. HP_SSLServer_AddSSLContext yu_sys.Address
  114. HP_SSLServer_AddSSLContextByMemory yu_sys.Address
  115. HP_SSLServer_BindSSLServerName yu_sys.Address
  116. HP_SSLServer_StartSSLHandShake yu_sys.Address
  117. HP_SSLServer_SetSSLAutoHandShake yu_sys.Address
  118. HP_SSLServer_IsSSLAutoHandShake yu_sys.Address
  119. HP_SSLServer_SetSSLCipherList yu_sys.Address
  120. HP_SSLServer_GetSSLCipherList yu_sys.Address
  121. HP_SSLServer_GetSSLSessionInfo yu_sys.Address
  122. HP_Server_IsPauseReceive yu_sys.Address
  123. HP_Server_IsConnected yu_sys.Address
  124. HP_Server_PauseReceive yu_sys.Address
  125. HP_SSLServer_CleanupSSLContext yu_sys.Address
  126. HP_Set_FN_Server_OnPrepareListen yu_sys.Address
  127. HP_Set_FN_Server_OnAccept yu_sys.Address
  128. HP_Set_FN_Server_OnHandShake yu_sys.Address
  129. HP_Set_FN_Server_OnSend yu_sys.Address
  130. HP_Set_FN_Server_OnReceive yu_sys.Address
  131. HP_Set_FN_Server_OnClose yu_sys.Address
  132. HP_Set_FN_Server_OnShutdown yu_sys.Address
  133. Create_HP_TcpServerListener yu_sys.Address
  134. Destroy_HP_TcpServerListener yu_sys.Address
  135. Create_HP_SSLServer yu_sys.Address
  136. Destroy_HP_SSLServer yu_sys.Address
  137. Create_HP_TcpServer yu_sys.Address
  138. Destroy_HP_TcpServer yu_sys.Address
  139. HP_TcpServer_SetSocketListenQueue yu_sys.Address
  140. HP_TcpServer_SetAcceptSocketCount yu_sys.Address
  141. HP_TcpServer_SetSocketBufferSize yu_sys.Address
  142. HP_TcpServer_SetKeepAliveTime yu_sys.Address
  143. HP_TcpServer_SetKeepAliveInterval yu_sys.Address
  144. HP_TcpServer_SetNoDelay yu_sys.Address
  145. HP_TcpServer_GetSocketListenQueue yu_sys.Address
  146. HP_TcpServer_GetAcceptSocketCount yu_sys.Address
  147. HP_TcpServer_GetSocketBufferSize yu_sys.Address
  148. HP_TcpServer_GetKeepAliveTime yu_sys.Address
  149. HP_TcpServer_GetKeepAliveInterval yu_sys.Address
  150. HP_TcpServer_IsNoDelay yu_sys.Address
  151. Create_HP_TcpPackServerListener yu_sys.Address
  152. Destroy_HP_TcpPackServerListener yu_sys.Address
  153. Create_HP_SSLPackServer yu_sys.Address
  154. Destroy_HP_SSLPackServer yu_sys.Address
  155. Create_HP_TcpPackServer yu_sys.Address
  156. Destroy_HP_TcpPackServer yu_sys.Address
  157. HP_TcpPackServer_SetMaxPackSize yu_sys.Address
  158. HP_TcpPackServer_SetPackHeaderFlag yu_sys.Address
  159. HP_TcpPackServer_GetMaxPackSize yu_sys.Address
  160. HP_TcpPackServer_GetPackHeaderFlag yu_sys.Address
  161. Create_HP_HttpServerListener yu_sys.Address
  162. Destroy_HP_HttpServerListener yu_sys.Address
  163. Create_HP_HttpsServer yu_sys.Address
  164. Destroy_HP_HttpsServer yu_sys.Address
  165. Create_HP_HttpServer yu_sys.Address
  166. Destroy_HP_HttpServer yu_sys.Address
  167. HP_HttpServer_SendResponse yu_sys.Address
  168. HP_HttpServer_SendChunkData yu_sys.Address
  169. HP_HttpServer_SendLocalFile yu_sys.Address
  170. HP_HttpServer_SendWSMessage yu_sys.Address
  171. HP_HttpServer_Release yu_sys.Address
  172. HP_HttpServer_SetReleaseDelay yu_sys.Address
  173. HP_HttpServer_GetReleaseDelay yu_sys.Address
  174. HP_HttpServer_GetUrlFieldSet yu_sys.Address
  175. HP_HttpServer_GetUrlField yu_sys.Address
  176. HP_HttpServer_GetMethod yu_sys.Address
  177. HP_HttpServer_SetLocalVersion yu_sys.Address
  178. HP_HttpServer_GetLocalVersion yu_sys.Address
  179. HP_HttpServer_IsUpgrade yu_sys.Address
  180. HP_HttpServer_IsKeepAlive yu_sys.Address
  181. HP_HttpServer_StartHttp yu_sys.Address
  182. HP_HttpServer_SetHttpAutoStart yu_sys.Address
  183. HP_HttpServer_IsHttpAutoStart yu_sys.Address
  184. HP_HttpServer_GetVersion yu_sys.Address
  185. HP_HttpServer_GetHost yu_sys.Address
  186. HP_HttpServer_GetContentLength yu_sys.Address
  187. HP_HttpServer_GetContentType yu_sys.Address
  188. HP_HttpServer_GetContentEncoding yu_sys.Address
  189. HP_HttpServer_GetTransferEncoding yu_sys.Address
  190. HP_HttpServer_GetUpgradeType yu_sys.Address
  191. HP_HttpServer_GetParseErrorCode yu_sys.Address
  192. HP_HttpServer_GetHeader yu_sys.Address
  193. HP_HttpServer_GetHeaders yu_sys.Address
  194. HP_HttpServer_GetAllHeaders yu_sys.Address
  195. HP_HttpServer_GetAllHeaderNames yu_sys.Address
  196. HP_HttpServer_GetCookie yu_sys.Address
  197. HP_HttpServer_GetAllCookies yu_sys.Address
  198. HP_HttpServer_GetWSMessageState yu_sys.Address
  199. HP_Set_FN_HttpServer_OnMessageBegin yu_sys.Address
  200. HP_Set_FN_HttpServer_OnRequestLine yu_sys.Address
  201. HP_Set_FN_HttpServer_OnHeader yu_sys.Address
  202. HP_Set_FN_HttpServer_OnHeadersComplete yu_sys.Address
  203. HP_Set_FN_HttpServer_OnBody yu_sys.Address
  204. HP_Set_FN_HttpServer_OnChunkHeader yu_sys.Address
  205. HP_Set_FN_HttpServer_OnChunkComplete yu_sys.Address
  206. HP_Set_FN_HttpServer_OnMessageComplete yu_sys.Address
  207. HP_Set_FN_HttpServer_OnUpgrade yu_sys.Address
  208. HP_Set_FN_HttpServer_OnParseError yu_sys.Address
  209. HP_Set_FN_HttpServer_OnWSMessageHeader yu_sys.Address
  210. HP_Set_FN_HttpServer_OnWSMessageBody yu_sys.Address
  211. HP_Set_FN_HttpServer_OnWSMessageComplete yu_sys.Address
  212. HP_Set_FN_HttpServer_OnPrepareListen yu_sys.Address
  213. HP_Set_FN_HttpServer_OnAccept yu_sys.Address
  214. HP_Set_FN_HttpServer_OnHandShake yu_sys.Address
  215. HP_Set_FN_HttpServer_OnSend yu_sys.Address
  216. HP_Set_FN_HttpServer_OnReceive yu_sys.Address
  217. HP_Set_FN_HttpServer_OnClose yu_sys.Address
  218. HP_Set_FN_HttpServer_OnShutdown yu_sys.Address
  219. )
  220. func loadDLL(path string) {
  221. modhpsocket = yu_sys.LoadLibrary(path)
  222. HP_Client_StartWithBindAddressAndLocalPort = modhpsocket.GetProcAddress("HP_Client_StartWithBindAddressAndLocalPort")
  223. HP_Client_Stop = modhpsocket.GetProcAddress("HP_Client_Stop")
  224. HP_Client_Wait = modhpsocket.GetProcAddress("HP_Client_Wait")
  225. HP_Client_Send = modhpsocket.GetProcAddress("HP_Client_Send")
  226. HP_Client_IsSecure = modhpsocket.GetProcAddress("HP_Client_IsSecure")
  227. HP_Client_SetExtra = modhpsocket.GetProcAddress("HP_Client_SetExtra")
  228. HP_Client_GetExtra = modhpsocket.GetProcAddress("HP_Client_GetExtra")
  229. HP_Client_HasStarted = modhpsocket.GetProcAddress("HP_Client_HasStarted")
  230. HP_Client_GetState = modhpsocket.GetProcAddress("HP_Client_GetState")
  231. HP_Client_GetLastError = modhpsocket.GetProcAddress("HP_Client_GetLastError")
  232. HP_Client_GetLastErrorDesc = modhpsocket.GetProcAddress("HP_Client_GetLastErrorDesc")
  233. HP_Client_GetConnectionID = modhpsocket.GetProcAddress("HP_Client_GetConnectionID")
  234. HP_Client_GetLocalAddress = modhpsocket.GetProcAddress("HP_Client_GetLocalAddress")
  235. HP_Client_GetRemoteHost = modhpsocket.GetProcAddress("HP_Client_GetRemoteHost")
  236. HP_Client_GetPendingDataLength = modhpsocket.GetProcAddress("HP_Client_GetPendingDataLength")
  237. HP_Client_SetFreeBufferPoolSize = modhpsocket.GetProcAddress("HP_Client_SetFreeBufferPoolSize")
  238. HP_Client_SetFreeBufferPoolHold = modhpsocket.GetProcAddress("HP_Client_SetFreeBufferPoolHold")
  239. HP_Client_GetFreeBufferPoolSize = modhpsocket.GetProcAddress("HP_Client_GetFreeBufferPoolSize")
  240. HP_Client_GetFreeBufferPoolHold = modhpsocket.GetProcAddress("HP_Client_GetFreeBufferPoolHold")
  241. HP_SSLClient_SetupSSLContext = modhpsocket.GetProcAddress("HP_SSLClient_SetupSSLContext")
  242. HP_SSLClient_SetupSSLContextByMemory = modhpsocket.GetProcAddress("HP_SSLClient_SetupSSLContextByMemory")
  243. HP_SSLClient_CleanupSSLContext = modhpsocket.GetProcAddress("HP_SSLClient_CleanupSSLContext")
  244. HP_SSLClient_StartSSLHandShake = modhpsocket.GetProcAddress("HP_SSLClient_StartSSLHandShake")
  245. HP_SSLClient_SetSSLAutoHandShake = modhpsocket.GetProcAddress("HP_SSLClient_SetSSLAutoHandShake")
  246. HP_SSLClient_IsSSLAutoHandShake = modhpsocket.GetProcAddress("HP_SSLClient_IsSSLAutoHandShake")
  247. HP_SSLClient_SetSSLCipherList = modhpsocket.GetProcAddress("HP_SSLClient_SetSSLCipherList")
  248. HP_SSLClient_GetSSLCipherList = modhpsocket.GetProcAddress("HP_SSLClient_GetSSLCipherList")
  249. HP_SSLClient_GetSSLSessionInfo = modhpsocket.GetProcAddress("HP_SSLClient_GetSSLSessionInfo")
  250. HP_Client_IsPauseReceive = modhpsocket.GetProcAddress("HP_Client_IsPauseReceive")
  251. HP_Client_IsConnected = modhpsocket.GetProcAddress("HP_Client_IsConnected")
  252. HP_Client_SetReuseAddressPolicy = modhpsocket.GetProcAddress("HP_Client_SetReuseAddressPolicy")
  253. HP_Client_GetReuseAddressPolicy = modhpsocket.GetProcAddress("HP_Client_GetReuseAddressPolicy")
  254. HP_Client_PauseReceive = modhpsocket.GetProcAddress("HP_Client_PauseReceive")
  255. HP_Set_FN_Client_OnPrepareConnect = modhpsocket.GetProcAddress("HP_Set_FN_Client_OnPrepareConnect")
  256. HP_Set_FN_Client_OnConnect = modhpsocket.GetProcAddress("HP_Set_FN_Client_OnConnect")
  257. HP_Set_FN_Client_OnHandShake = modhpsocket.GetProcAddress("HP_Set_FN_Client_OnHandShake")
  258. HP_Set_FN_Client_OnSend = modhpsocket.GetProcAddress("HP_Set_FN_Client_OnSend")
  259. HP_Set_FN_Client_OnReceive = modhpsocket.GetProcAddress("HP_Set_FN_Client_OnReceive")
  260. HP_Set_FN_Client_OnClose = modhpsocket.GetProcAddress("HP_Set_FN_Client_OnClose")
  261. Create_HP_TcpClientListener = modhpsocket.GetProcAddress("Create_HP_TcpClientListener")
  262. Destroy_HP_TcpClientListener = modhpsocket.GetProcAddress("Destroy_HP_TcpClientListener")
  263. Create_HP_SSLClient = modhpsocket.GetProcAddress("Create_HP_SSLClient")
  264. Destroy_HP_SSLClient = modhpsocket.GetProcAddress("Destroy_HP_SSLClient")
  265. Create_HP_TcpClient = modhpsocket.GetProcAddress("Create_HP_TcpClient")
  266. Destroy_HP_TcpClient = modhpsocket.GetProcAddress("Destroy_HP_TcpClient")
  267. HP_TcpClient_SetSocketBufferSize = modhpsocket.GetProcAddress("HP_TcpClient_SetSocketBufferSize")
  268. HP_TcpClient_SetKeepAliveTime = modhpsocket.GetProcAddress("HP_TcpClient_SetKeepAliveTime")
  269. HP_TcpClient_SetKeepAliveInterval = modhpsocket.GetProcAddress("HP_TcpClient_SetKeepAliveInterval")
  270. HP_TcpClient_SetNoDelay = modhpsocket.GetProcAddress("HP_TcpClient_SetNoDelay")
  271. HP_TcpClient_GetSocketBufferSize = modhpsocket.GetProcAddress("HP_TcpClient_GetSocketBufferSize")
  272. HP_TcpClient_GetKeepAliveTime = modhpsocket.GetProcAddress("HP_TcpClient_GetKeepAliveTime")
  273. HP_TcpClient_GetKeepAliveInterval = modhpsocket.GetProcAddress("HP_TcpClient_GetKeepAliveInterval")
  274. HP_TcpClient_IsNoDelay = modhpsocket.GetProcAddress("HP_TcpClient_IsNoDelay")
  275. Create_HP_TcpPackClientListener = modhpsocket.GetProcAddress("Create_HP_TcpPackClientListener")
  276. Destroy_HP_TcpPackClientListener = modhpsocket.GetProcAddress("Destroy_HP_TcpPackClientListener")
  277. Create_HP_SSLPackClient = modhpsocket.GetProcAddress("Create_HP_SSLPackClient")
  278. Destroy_HP_SSLPackClient = modhpsocket.GetProcAddress("Destroy_HP_SSLPackClient")
  279. Create_HP_TcpPackClient = modhpsocket.GetProcAddress("Create_HP_TcpPackClient")
  280. Destroy_HP_TcpPackClient = modhpsocket.GetProcAddress("Destroy_HP_TcpPackClient")
  281. HP_TcpPackClient_SetMaxPackSize = modhpsocket.GetProcAddress("HP_TcpPackClient_SetMaxPackSize")
  282. HP_TcpPackClient_SetPackHeaderFlag = modhpsocket.GetProcAddress("HP_TcpPackClient_SetPackHeaderFlag")
  283. HP_TcpPackClient_GetMaxPackSize = modhpsocket.GetProcAddress("HP_TcpPackClient_GetMaxPackSize")
  284. HP_TcpPackClient_GetPackHeaderFlag = modhpsocket.GetProcAddress("HP_TcpPackClient_GetPackHeaderFlag")
  285. HP_Server_Start = modhpsocket.GetProcAddress("HP_Server_Start")
  286. HP_Server_Stop = modhpsocket.GetProcAddress("HP_Server_Stop")
  287. HP_Server_Wait = modhpsocket.GetProcAddress("HP_Server_Wait")
  288. HP_Server_Send = modhpsocket.GetProcAddress("HP_Server_Send")
  289. HP_Server_IsSecure = modhpsocket.GetProcAddress("HP_Server_IsSecure")
  290. HP_Server_Disconnect = modhpsocket.GetProcAddress("HP_Server_Disconnect")
  291. HP_Server_DisconnectLongConnections = modhpsocket.GetProcAddress("HP_Server_DisconnectLongConnections")
  292. HP_Server_DisconnectSilenceConnections = modhpsocket.GetProcAddress("HP_Server_DisconnectSilenceConnections")
  293. HP_Server_SetConnectionExtra = modhpsocket.GetProcAddress("HP_Server_SetConnectionExtra")
  294. HP_Server_GetConnectionExtra = modhpsocket.GetProcAddress("HP_Server_GetConnectionExtra")
  295. HP_Server_HasStarted = modhpsocket.GetProcAddress("HP_Server_HasStarted")
  296. HP_Server_GetState = modhpsocket.GetProcAddress("HP_Server_GetState")
  297. HP_Server_GetLastError = modhpsocket.GetProcAddress("HP_Server_GetLastError")
  298. HP_Server_GetLastErrorDesc = modhpsocket.GetProcAddress("HP_Server_GetLastErrorDesc")
  299. HP_Server_GetPendingDataLength = modhpsocket.GetProcAddress("HP_Server_GetPendingDataLength")
  300. HP_Server_GetConnectionCount = modhpsocket.GetProcAddress("HP_Server_GetConnectionCount")
  301. HP_Server_GetAllConnectionIDs = modhpsocket.GetProcAddress("HP_Server_GetAllConnectionIDs")
  302. HP_Server_GetConnectPeriod = modhpsocket.GetProcAddress("HP_Server_GetConnectPeriod")
  303. HP_Server_GetSilencePeriod = modhpsocket.GetProcAddress("HP_Server_GetSilencePeriod")
  304. HP_Server_GetListenAddress = modhpsocket.GetProcAddress("HP_Server_GetListenAddress")
  305. HP_Server_GetLocalAddress = modhpsocket.GetProcAddress("HP_Server_GetLocalAddress")
  306. HP_Server_GetRemoteAddress = modhpsocket.GetProcAddress("HP_Server_GetRemoteAddress")
  307. HP_Server_SetSendPolicy = modhpsocket.GetProcAddress("HP_Server_SetSendPolicy")
  308. HP_Server_SetOnSendSyncPolicy = modhpsocket.GetProcAddress("HP_Server_SetOnSendSyncPolicy")
  309. HP_Server_SetFreeSocketObjLockTime = modhpsocket.GetProcAddress("HP_Server_SetFreeSocketObjLockTime")
  310. HP_Server_SetFreeSocketObjPool = modhpsocket.GetProcAddress("HP_Server_SetFreeSocketObjPool")
  311. HP_Server_SetFreeBufferObjPool = modhpsocket.GetProcAddress("HP_Server_SetFreeBufferObjPool")
  312. HP_Server_SetFreeSocketObjHold = modhpsocket.GetProcAddress("HP_Server_SetFreeSocketObjHold")
  313. HP_Server_SetFreeBufferObjHold = modhpsocket.GetProcAddress("HP_Server_SetFreeBufferObjHold")
  314. HP_Server_SetMaxConnectionCount = modhpsocket.GetProcAddress("HP_Server_SetMaxConnectionCount")
  315. HP_Server_SetWorkerThreadCount = modhpsocket.GetProcAddress("HP_Server_SetWorkerThreadCount")
  316. HP_Server_SetMarkSilence = modhpsocket.GetProcAddress("HP_Server_SetMarkSilence")
  317. HP_Server_GetSendPolicy = modhpsocket.GetProcAddress("HP_Server_GetSendPolicy")
  318. HP_Server_GetOnSendSyncPolicy = modhpsocket.GetProcAddress("HP_Server_GetOnSendSyncPolicy")
  319. HP_Server_GetFreeSocketObjLockTime = modhpsocket.GetProcAddress("HP_Server_GetFreeSocketObjLockTime")
  320. HP_Server_GetFreeSocketObjPool = modhpsocket.GetProcAddress("HP_Server_GetFreeSocketObjPool")
  321. HP_Server_GetFreeBufferObjPool = modhpsocket.GetProcAddress("HP_Server_GetFreeBufferObjPool")
  322. HP_Server_GetFreeSocketObjHold = modhpsocket.GetProcAddress("HP_Server_GetFreeSocketObjHold")
  323. HP_Server_GetFreeBufferObjHold = modhpsocket.GetProcAddress("HP_Server_GetFreeBufferObjHold")
  324. HP_Server_GetMaxConnectionCount = modhpsocket.GetProcAddress("HP_Server_GetMaxConnectionCount")
  325. HP_Server_GetWorkerThreadCount = modhpsocket.GetProcAddress("HP_Server_GetWorkerThreadCount")
  326. HP_Server_IsMarkSilence = modhpsocket.GetProcAddress("HP_Server_IsMarkSilence")
  327. HP_SSLServer_SetupSSLContext = modhpsocket.GetProcAddress("HP_SSLServer_SetupSSLContext")
  328. HP_SSLServer_SetupSSLContextByMemory = modhpsocket.GetProcAddress("HP_SSLServer_SetupSSLContextByMemory")
  329. HP_SSLServer_AddSSLContext = modhpsocket.GetProcAddress("HP_SSLServer_AddSSLContext")
  330. HP_SSLServer_AddSSLContextByMemory = modhpsocket.GetProcAddress("HP_SSLServer_AddSSLContextByMemory")
  331. HP_SSLServer_BindSSLServerName = modhpsocket.GetProcAddress("HP_SSLServer_BindSSLServerName")
  332. HP_SSLServer_StartSSLHandShake = modhpsocket.GetProcAddress("HP_SSLServer_StartSSLHandShake")
  333. HP_SSLServer_SetSSLAutoHandShake = modhpsocket.GetProcAddress("HP_SSLServer_SetSSLAutoHandShake")
  334. HP_SSLServer_IsSSLAutoHandShake = modhpsocket.GetProcAddress("HP_SSLServer_IsSSLAutoHandShake")
  335. HP_SSLServer_SetSSLCipherList = modhpsocket.GetProcAddress("HP_SSLServer_SetSSLCipherList")
  336. HP_SSLServer_GetSSLCipherList = modhpsocket.GetProcAddress("HP_SSLServer_GetSSLCipherList")
  337. HP_SSLServer_GetSSLSessionInfo = modhpsocket.GetProcAddress("HP_SSLServer_GetSSLSessionInfo")
  338. HP_Server_IsPauseReceive = modhpsocket.GetProcAddress("HP_Server_IsPauseReceive")
  339. HP_Server_IsConnected = modhpsocket.GetProcAddress("HP_Server_IsConnected")
  340. HP_Server_PauseReceive = modhpsocket.GetProcAddress("HP_Server_PauseReceive")
  341. HP_SSLServer_CleanupSSLContext = modhpsocket.GetProcAddress("HP_SSLServer_CleanupSSLContext")
  342. HP_Set_FN_Server_OnPrepareListen = modhpsocket.GetProcAddress("HP_Set_FN_Server_OnPrepareListen")
  343. HP_Set_FN_Server_OnAccept = modhpsocket.GetProcAddress("HP_Set_FN_Server_OnAccept")
  344. HP_Set_FN_Server_OnHandShake = modhpsocket.GetProcAddress("HP_Set_FN_Server_OnHandShake")
  345. HP_Set_FN_Server_OnSend = modhpsocket.GetProcAddress("HP_Set_FN_Server_OnSend")
  346. HP_Set_FN_Server_OnReceive = modhpsocket.GetProcAddress("HP_Set_FN_Server_OnReceive")
  347. HP_Set_FN_Server_OnClose = modhpsocket.GetProcAddress("HP_Set_FN_Server_OnClose")
  348. HP_Set_FN_Server_OnShutdown = modhpsocket.GetProcAddress("HP_Set_FN_Server_OnShutdown")
  349. Create_HP_TcpServerListener = modhpsocket.GetProcAddress("Create_HP_TcpServerListener")
  350. Destroy_HP_TcpServerListener = modhpsocket.GetProcAddress("Destroy_HP_TcpServerListener")
  351. Create_HP_SSLServer = modhpsocket.GetProcAddress("Create_HP_SSLServer")
  352. Destroy_HP_SSLServer = modhpsocket.GetProcAddress("Destroy_HP_SSLServer")
  353. Create_HP_TcpServer = modhpsocket.GetProcAddress("Create_HP_TcpServer")
  354. Destroy_HP_TcpServer = modhpsocket.GetProcAddress("Destroy_HP_TcpServer")
  355. HP_TcpServer_SetSocketListenQueue = modhpsocket.GetProcAddress("HP_TcpServer_SetSocketListenQueue")
  356. HP_TcpServer_SetAcceptSocketCount = modhpsocket.GetProcAddress("HP_TcpServer_SetAcceptSocketCount")
  357. HP_TcpServer_SetSocketBufferSize = modhpsocket.GetProcAddress("HP_TcpServer_SetSocketBufferSize")
  358. HP_TcpServer_SetKeepAliveTime = modhpsocket.GetProcAddress("HP_TcpServer_SetKeepAliveTime")
  359. HP_TcpServer_SetKeepAliveInterval = modhpsocket.GetProcAddress("HP_TcpServer_SetKeepAliveInterval")
  360. HP_TcpServer_SetNoDelay = modhpsocket.GetProcAddress("HP_TcpServer_SetNoDelay")
  361. HP_TcpServer_GetSocketListenQueue = modhpsocket.GetProcAddress("HP_TcpServer_GetSocketListenQueue")
  362. HP_TcpServer_GetAcceptSocketCount = modhpsocket.GetProcAddress("HP_TcpServer_GetAcceptSocketCount")
  363. HP_TcpServer_GetSocketBufferSize = modhpsocket.GetProcAddress("HP_TcpServer_GetSocketBufferSize")
  364. HP_TcpServer_GetKeepAliveTime = modhpsocket.GetProcAddress("HP_TcpServer_GetKeepAliveTime")
  365. HP_TcpServer_GetKeepAliveInterval = modhpsocket.GetProcAddress("HP_TcpServer_GetKeepAliveInterval")
  366. HP_TcpServer_IsNoDelay = modhpsocket.GetProcAddress("HP_TcpServer_IsNoDelay")
  367. Create_HP_TcpPackServerListener = modhpsocket.GetProcAddress("Create_HP_TcpPackServerListener")
  368. Destroy_HP_TcpPackServerListener = modhpsocket.GetProcAddress("Destroy_HP_TcpPackServerListener")
  369. Create_HP_SSLPackServer = modhpsocket.GetProcAddress("Create_HP_SSLPackServer")
  370. Destroy_HP_SSLPackServer = modhpsocket.GetProcAddress("Destroy_HP_SSLPackServer")
  371. Create_HP_TcpPackServer = modhpsocket.GetProcAddress("Create_HP_TcpPackServer")
  372. Destroy_HP_TcpPackServer = modhpsocket.GetProcAddress("Destroy_HP_TcpPackServer")
  373. HP_TcpPackServer_SetMaxPackSize = modhpsocket.GetProcAddress("HP_TcpPackServer_SetMaxPackSize")
  374. HP_TcpPackServer_SetPackHeaderFlag = modhpsocket.GetProcAddress("HP_TcpPackServer_SetPackHeaderFlag")
  375. HP_TcpPackServer_GetMaxPackSize = modhpsocket.GetProcAddress("HP_TcpPackServer_GetMaxPackSize")
  376. HP_TcpPackServer_GetPackHeaderFlag = modhpsocket.GetProcAddress("HP_TcpPackServer_GetPackHeaderFlag")
  377. Create_HP_HttpServerListener = modhpsocket.GetProcAddress("Create_HP_HttpServerListener")
  378. Destroy_HP_HttpServerListener = modhpsocket.GetProcAddress("Destroy_HP_HttpServerListener")
  379. Create_HP_HttpsServer = modhpsocket.GetProcAddress("Create_HP_HttpsServer")
  380. Destroy_HP_HttpsServer = modhpsocket.GetProcAddress("Destroy_HP_HttpsServer")
  381. Create_HP_HttpServer = modhpsocket.GetProcAddress("Create_HP_HttpServer")
  382. Destroy_HP_HttpServer = modhpsocket.GetProcAddress("Destroy_HP_HttpServer")
  383. HP_HttpServer_SendResponse = modhpsocket.GetProcAddress("HP_HttpServer_SendResponse")
  384. HP_HttpServer_SendChunkData = modhpsocket.GetProcAddress("HP_HttpServer_SendChunkData")
  385. HP_HttpServer_SendLocalFile = modhpsocket.GetProcAddress("HP_HttpServer_SendLocalFile")
  386. HP_HttpServer_SendWSMessage = modhpsocket.GetProcAddress("HP_HttpServer_SendWSMessage")
  387. HP_HttpServer_Release = modhpsocket.GetProcAddress("HP_HttpServer_Release")
  388. HP_HttpServer_SetReleaseDelay = modhpsocket.GetProcAddress("HP_HttpServer_SetReleaseDelay")
  389. HP_HttpServer_GetReleaseDelay = modhpsocket.GetProcAddress("HP_HttpServer_GetReleaseDelay")
  390. HP_HttpServer_GetUrlFieldSet = modhpsocket.GetProcAddress("HP_HttpServer_GetUrlFieldSet")
  391. HP_HttpServer_GetUrlField = modhpsocket.GetProcAddress("HP_HttpServer_GetUrlField")
  392. HP_HttpServer_GetMethod = modhpsocket.GetProcAddress("HP_HttpServer_GetMethod")
  393. HP_HttpServer_SetLocalVersion = modhpsocket.GetProcAddress("HP_HttpServer_SetLocalVersion")
  394. HP_HttpServer_GetLocalVersion = modhpsocket.GetProcAddress("HP_HttpServer_GetLocalVersion")
  395. HP_HttpServer_IsUpgrade = modhpsocket.GetProcAddress("HP_HttpServer_IsUpgrade")
  396. HP_HttpServer_IsKeepAlive = modhpsocket.GetProcAddress("HP_HttpServer_IsKeepAlive")
  397. HP_HttpServer_StartHttp = modhpsocket.GetProcAddress("HP_HttpServer_StartHttp")
  398. HP_HttpServer_SetHttpAutoStart = modhpsocket.GetProcAddress("HP_HttpServer_SetHttpAutoStart")
  399. HP_HttpServer_IsHttpAutoStart = modhpsocket.GetProcAddress("HP_HttpServer_IsHttpAutoStart")
  400. HP_HttpServer_GetVersion = modhpsocket.GetProcAddress("HP_HttpServer_GetVersion")
  401. HP_HttpServer_GetHost = modhpsocket.GetProcAddress("HP_HttpServer_GetHost")
  402. HP_HttpServer_GetContentLength = modhpsocket.GetProcAddress("HP_HttpServer_GetContentLength")
  403. HP_HttpServer_GetContentType = modhpsocket.GetProcAddress("HP_HttpServer_GetContentType")
  404. HP_HttpServer_GetContentEncoding = modhpsocket.GetProcAddress("HP_HttpServer_GetContentEncoding")
  405. HP_HttpServer_GetTransferEncoding = modhpsocket.GetProcAddress("HP_HttpServer_GetTransferEncoding")
  406. HP_HttpServer_GetUpgradeType = modhpsocket.GetProcAddress("HP_HttpServer_GetUpgradeType")
  407. HP_HttpServer_GetParseErrorCode = modhpsocket.GetProcAddress("HP_HttpServer_GetParseErrorCode")
  408. HP_HttpServer_GetHeader = modhpsocket.GetProcAddress("HP_HttpServer_GetHeader")
  409. HP_HttpServer_GetHeaders = modhpsocket.GetProcAddress("HP_HttpServer_GetHeaders")
  410. HP_HttpServer_GetAllHeaders = modhpsocket.GetProcAddress("HP_HttpServer_GetAllHeaders")
  411. HP_HttpServer_GetAllHeaderNames = modhpsocket.GetProcAddress("HP_HttpServer_GetAllHeaderNames")
  412. HP_HttpServer_GetCookie = modhpsocket.GetProcAddress("HP_HttpServer_GetCookie")
  413. HP_HttpServer_GetAllCookies = modhpsocket.GetProcAddress("HP_HttpServer_GetAllCookies")
  414. HP_HttpServer_GetWSMessageState = modhpsocket.GetProcAddress("HP_HttpServer_GetWSMessageState")
  415. HP_Set_FN_HttpServer_OnMessageBegin = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnMessageBegin")
  416. HP_Set_FN_HttpServer_OnRequestLine = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnRequestLine")
  417. HP_Set_FN_HttpServer_OnHeader = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnHeader")
  418. HP_Set_FN_HttpServer_OnHeadersComplete = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnHeadersComplete")
  419. HP_Set_FN_HttpServer_OnBody = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnBody")
  420. HP_Set_FN_HttpServer_OnChunkHeader = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnChunkHeader")
  421. HP_Set_FN_HttpServer_OnChunkComplete = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnChunkComplete")
  422. HP_Set_FN_HttpServer_OnMessageComplete = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnMessageComplete")
  423. HP_Set_FN_HttpServer_OnUpgrade = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnUpgrade")
  424. HP_Set_FN_HttpServer_OnParseError = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnParseError")
  425. HP_Set_FN_HttpServer_OnWSMessageHeader = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnWSMessageHeader")
  426. HP_Set_FN_HttpServer_OnWSMessageBody = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnWSMessageBody")
  427. HP_Set_FN_HttpServer_OnWSMessageComplete = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnWSMessageComplete")
  428. HP_Set_FN_HttpServer_OnPrepareListen = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnPrepareListen")
  429. HP_Set_FN_HttpServer_OnAccept = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnAccept")
  430. HP_Set_FN_HttpServer_OnHandShake = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnHandShake")
  431. HP_Set_FN_HttpServer_OnSend = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnSend")
  432. HP_Set_FN_HttpServer_OnReceive = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnReceive")
  433. HP_Set_FN_HttpServer_OnClose = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnClose")
  434. HP_Set_FN_HttpServer_OnShutdown = modhpsocket.GetProcAddress("HP_Set_FN_HttpServer_OnShutdown")
  435. }