Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jun : Ping Francois Piette...
| Subject: | Ping Francois Piette... |
| Posted by: | "Martin James" (mjames_falc..@dial.pipex.com) |
| Date: | Fri, 10 Jun 2005 06:49:36 |
Have you considered putting an overlapped/IOCP layer underneath *your*
protocol handlers? Your protocols and users already have the 'correct'
non-blocking structure for such designs. You could have a default-to-true
option for postMessaging the events to the main thread, so enabling your
users' legacy code to work 'as-is', ie. directly acessing the VCL. Another
possibility might be to provide two sets of events, eg. 'onVCLread' and
'onThreadRead'. If 'onVCLread' is not assigned, your server code would not
need to postMessage the events, so boosting performance for those who don't
need VCL interactions.
Rgds,
Martin