|
, c# H2 k# T( t z易语言HPSOCKET之HTTP使用列子,由于5.9.2之前的中文模块出现了一些问题 导致 HTTP 使用有很不好的体验所以这次着重更新了 中文例子使用的方法
" E3 G: i- Z- q: p; [2 M并且附带了 一个静态网址 让大家体验
3 E& _) A3 N8 q) u3 p5 L) l5 } em_Server.OnPrepareListen (&OnPrepareListen)# G" D9 T2 M6 z; k
m_Server.OnAccept (&OnAccept)
Z: U: e0 x8 [' L" am_Server.OnHandShake (&OnHandShake)# C# O ]/ N0 u! k' a7 C
m_Server.OnSend (&OnSend)5 z" t% u: b( X. }$ s
m_Server.OnReceive (&OnReceive)2 W% L7 a, {+ p# ^ `, l
m_Server.OnClose (&OnClose)
! H9 k6 i+ w4 r: F0 Ym_Server.OnShutdown (&OnShutdown). Z# R5 _6 j: j, A3 J5 T
m_Server.OnMessageBegin (&OnMessageBegin)1 z0 F) L2 Y$ P
m_Server.OnRequestLine (&OnRequestLine)) m8 G2 }: O. t- S# n( v
m_Server.OnHeader (&OnHeader)
8 F$ b* I3 ^9 Zm_Server.OnHeadersComplete (&OnHeadersComplete)
. [3 S) ^$ I4 }% k7 R# }m_Server.OnBody (&OnBody)
- i3 m1 `! o$ X: [% Dm_Server.OnChunkHeader (&OnChunkHeader)! Z7 ~3 n6 S2 Q4 T# |
m_Server.OnChunkComplete (&OnChunkComplete)0 ^$ R/ E# |# E; h
m_Server.OnMessageComplete (&OnMessageComplete)
- ~2 z0 k w4 L5 c+ D6 A# @" tm_Server.OnUpgrade (&OnUpgrade)9 U9 M+ Z' L# K1 w+ l
m_Server.OnParseError (&OnParseError)
2 N. W0 ]- J- L& r% Gm_Server.OnWSMessageHeader (&OnWSMessageHeader)4 B5 g9 n8 V- K6 x8 u' D4 K
m_Server.OnWSMessageBody (&OnWSMessageBody)1 q+ P" D* |( w! S; U4 @* v
m_Server.OnWSMessageComplete (&OnWSMessageComplete)5 R9 r, j/ m3 j1 m( ]- b, A- ]. Y
SetAppState (#ST_STOPED) P! n" ^- o' P: }" ]
' R* U! W9 O/ y
6 ]8 x) I* n2 @( m: Q8 G9 u% n$ {
1 w( @$ O2 K5 v* V7 g
/ }' u, S+ \ b; D8 U; D; s) `3 e5 } ^; z
|
|