vijayyande / spserver

Automatically exported from code.google.com/p/spserver
Other
0 stars 0 forks source link

some features are recommended #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1.Is it possible that we want to manage other events(timer or fd event) by 
the spserver architecture at the same time?
The spserver just accept a socket from far-end now.
Could we added a tunnel or method to push some events into eventbase of 
spserver?

2.The SP_MsgDecoder just simply decode the message. I think some scenarios 
that maybe decode the message according to the status of SP_Session.
The SP_MsgDecoder::decode(SP_Buffer *inBuffer) is limited. I think that 
something need to changes like as SP_MsgDecoder::decode( SP_Session 
*session ) and to give programmer a factory pattern to generate the custom 
SP_Session(to replace SP_Session * session = new SP_Session( sid )
 at SP_EventCallback :: onAccept()).

Best Regards and Thank you.
Person

Original issue reported on code.google.com by personli...@gmail.com on 10 Jun 2007 at 4:21

GoogleCodeExporter commented 9 years ago
A socket dispatcher that applies a half-async/half-sync thread pool for 
server/client sockets was added in 0.5 release. 

Actually, the SP_Handler can be used as the custom session object.The 
SP_Handler is 
an one-to-one map to the fd. The SP_Handler is not like the jsp's servlet. The 
jsp's 
servlet is an one-to-many map to the fd. 

Original comment by stephen....@gmail.com on 3 Aug 2007 at 2:46

GoogleCodeExporter commented 9 years ago
A timer mechanism for SP_Dispatcher was added in 0.7 release.

Original comment by stephen....@gmail.com on 23 Aug 2007 at 1:04