Navin Mishra
2007-04-25 17:36:25 UTC
Hi,
I want to send data asynchronously to a connected end point using
Socket.BeginSend but need to dispatch data in order from a queue. So, would
it be a good idea to call BeginSend again inside SendCallback to initiate
another asynchronous send if there is data remaining to be send ? Or is it
not good idea after all and has potential to use all threads from IO thread
pool or cause a "stack dive" ?
Thanks in advance and regards
Navin
I want to send data asynchronously to a connected end point using
Socket.BeginSend but need to dispatch data in order from a queue. So, would
it be a good idea to call BeginSend again inside SendCallback to initiate
another asynchronous send if there is data remaining to be send ? Or is it
not good idea after all and has potential to use all threads from IO thread
pool or cause a "stack dive" ?
Thanks in advance and regards
Navin