|
F) N2 w$ j4 A6 F1 f" L
易语言HPSOCKET之HTTP使用列子,由于5.9.2之前的中文模块出现了一些问题 导致 HTTP 使用有很不好的体验所以这次着重更新了 中文例子使用的方法
6 v1 a5 P" e, U% _) |. Q2 R: p并且附带了 一个静态网址 让大家体验 / R) Z$ H/ V3 g. L
m_Server.OnPrepareListen (&OnPrepareListen)
3 ]3 N' G/ `# T0 H1 im_Server.OnAccept (&OnAccept)
* Y) i8 L2 r0 { \' D9 @/ O/ Gm_Server.OnHandShake (&OnHandShake)/ a0 O7 c+ y3 g5 _
m_Server.OnSend (&OnSend)2 l$ A# `: m* E2 p4 y
m_Server.OnReceive (&OnReceive)
. M) c& a" D8 t: J: q1 Q/ a# [m_Server.OnClose (&OnClose)% Q% T. a% o" |+ G' j/ ?( ^% M
m_Server.OnShutdown (&OnShutdown)4 U( \1 e0 { L8 Q& B S g
m_Server.OnMessageBegin (&OnMessageBegin)
1 @. N0 ?& \. p5 y+ Tm_Server.OnRequestLine (&OnRequestLine)
: x8 W( l/ K1 M" D- j0 _( l6 p- lm_Server.OnHeader (&OnHeader)+ h$ t% A3 @3 f; s: {% f4 L3 m
m_Server.OnHeadersComplete (&OnHeadersComplete)
, G6 h8 L c( a) F+ t8 h# u( Um_Server.OnBody (&OnBody). t6 B9 m& E& h. U; C
m_Server.OnChunkHeader (&OnChunkHeader)
# r5 M7 j) V7 `' l+ X# G7 N: Om_Server.OnChunkComplete (&OnChunkComplete)" }. X5 h# _. e4 N* f( g
m_Server.OnMessageComplete (&OnMessageComplete): d% D$ B+ I, j2 O0 W, Y
m_Server.OnUpgrade (&OnUpgrade)4 ~$ z; T. _6 Q2 w. N- l
m_Server.OnParseError (&OnParseError)# K" c) k" r+ [" p
m_Server.OnWSMessageHeader (&OnWSMessageHeader)
1 W) j5 M w; t1 s8 Pm_Server.OnWSMessageBody (&OnWSMessageBody)0 c& _9 b3 r( G3 S
m_Server.OnWSMessageComplete (&OnWSMessageComplete)- P. w! D4 F" W O
SetAppState (#ST_STOPED)
2 O2 W3 t4 P) e; K9 ?( U$ ~% t3 d& l* p
+ a+ G- }5 K5 y) y
2 n2 H$ i. M6 U& y
/ v: p% d; ?6 @1 A2 Y, h% b# F3 x; L! ?& G8 i8 o
|
|