On Thu, Dec 10, 2009 at 6:47 AM, nir elkayam <nir.elkayam at gmail.com> wrote: > hi benny, > > I see what u say but this issue will also raise with using regular async > events. The difference is, normally we would expect events to happen inside the "poll" function, and we can be sure that things are in good state before the events are executed. With the CActiveScheduler::Start() approach, now events can happen pretty much anywhere where this approach is used. Like I said, for example a timer event may elapse while we're inside pj_sock_send(), and this is bad. > is there anyway where u implement the PENDING state on send/sendto (i mean > other os.) > Async I/O is always done with ioqueue. Cheers Benny