I have an application which pool network connection as they are made.
and I want to check on the opened one if there is any data available.
would it be only for socket I know I have 2 option:
call Poll() or Select()
Select() is not really proper as the number of socket could grow dynamically
anytime (or is it, could I Abort() my Select() thread ?)
so I was thinking to Poll() every single socket, in order not to have
pending data on a Socket I was thinking to loop through the socket and call
Poll() with a 0 millisecond timeout.
Also my app has pipe as IPC, and I was thinking to use te DataAvailable
property of stream instead of doing socket specific stuff and coninuously
loop through connection in the background.
what about that ?
any suggestion ?
Ron Alberda [MSFT] - 21 Oct 2003 23:50 GMT
Poll would be the best option.
-Ron
> I have an application which pool network connection as they are made.
> and I want to check on the opened one if there is any data available.
[quoted text clipped - 14 lines]
> what about that ?
> any suggestion ?
Lloyd Dupont - 28 Oct 2003 12:19 GMT
Hi Ron !
It's all solved elegantly now !
I just find your message, too late ;-)
> Poll would be the best option.
>
[quoted text clipped - 20 lines]
> > what about that ?
> > any suggestion ?