|
7 _/ J J+ J1 y0 n
易语言HPSOCKET之HTTP使用列子,由于5.9.2之前的中文模块出现了一些问题 导致 HTTP 使用有很不好的体验所以这次着重更新了 中文例子使用的方法$ n7 B. O$ J+ o2 S5 X# c5 a0 k
并且附带了 一个静态网址 让大家体验
9 t3 S) P G* ?8 Y, dm_Server.OnPrepareListen (&OnPrepareListen)
- N% L8 h: [+ ?, h+ Z9 R' }m_Server.OnAccept (&OnAccept)4 I) p7 v* A7 ^8 f& ~1 |8 b
m_Server.OnHandShake (&OnHandShake)
# r6 F, J0 M4 K* g6 i/ n% Am_Server.OnSend (&OnSend)
. Y- r. C# `9 Z9 J g; Dm_Server.OnReceive (&OnReceive)8 X3 x5 J- w& z0 p0 w1 M' G1 O- {6 I
m_Server.OnClose (&OnClose)
( _. c& |) z' |& a* gm_Server.OnShutdown (&OnShutdown)# @' Y1 o. ~0 f2 p
m_Server.OnMessageBegin (&OnMessageBegin)7 r3 k6 l% z6 d8 ~" L
m_Server.OnRequestLine (&OnRequestLine)1 ~+ {0 b+ ~/ C! B, M
m_Server.OnHeader (&OnHeader)
; g& L. r4 D! G5 Cm_Server.OnHeadersComplete (&OnHeadersComplete) C. h. F4 Q9 H4 t: q
m_Server.OnBody (&OnBody)% c6 D* G: j2 I6 [
m_Server.OnChunkHeader (&OnChunkHeader)* \1 h. G6 S2 U p
m_Server.OnChunkComplete (&OnChunkComplete)" w% C. g! n/ \1 y! ]
m_Server.OnMessageComplete (&OnMessageComplete)
( J7 r# |2 r0 p' }9 ?; x0 Am_Server.OnUpgrade (&OnUpgrade)
/ o0 e# X9 B% g2 n; cm_Server.OnParseError (&OnParseError)
" P7 ^) v& a5 O1 P# i. T# Sm_Server.OnWSMessageHeader (&OnWSMessageHeader)& H2 ?$ B' [$ ]% K5 E" ]0 s) j' d
m_Server.OnWSMessageBody (&OnWSMessageBody)4 Q. g; [' |/ h. b
m_Server.OnWSMessageComplete (&OnWSMessageComplete)2 V! V) b4 A& ^2 ]
SetAppState (#ST_STOPED)
1 y* @- a) x- p L' |3 \2 x0 u' g2 ]& P) S- i3 k0 P5 G" b
( z/ p1 v3 Z% N8 f3 X% E* ]: {8 [" @( \* V! A! ~6 F2 N/ x& H
/ e/ q, g5 f" L+ P1 Z' G$ Q+ v: V$ x3 E* y
|
|