Home » Developing U++ » U++ Developers corner » Socket review and reimplementation
Re: Socket review and reimplementation [message #9250 is a reply to message #9247] |
Mon, 23 April 2007 23:11   |
zsolt
Messages: 702 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
Thanks for working on that.
May I suggest to implement the loop using some pluggable interfaces?
I mean, that in some situations (e.g. web servers), a fully featured mainloop is not needed, but performance is much more important. An other aspect is, that Unixes don't have a generic event handling interface, that can be used for every type of events, like MsgWaitForMultipleObjects on Windows.
I would prefer an extensible API, usable like this or something similar:
MainLoop<StdLoop> mainloop;
or
MainLoop<LibeventLoop> mainloop;
For simple TCP servers on unixes, using libevent as an option some way would be a killer solution because of it's performance.
|
|
|
Goto Forum:
Current Time: Tue Apr 29 01:48:26 CEST 2025
Total time taken to generate the page: 0.00712 seconds
|