Nicolae Babanu wrote:
Hi!
I am diggin into SocketTransportService code and events processing model. There is one thing I still got no information about and did not catch from the code - what doew Poll() mean and why does SocketTransportService need to call the NSPR PR_Poll() function?
nsSocketTransportService uses NSPR's PR_Poll (which amounts to a call to the poll or select system calls) to wait for any of the sockets (PRFileDesc instances) to become reading for reading, writing, etc. nsSocketTransportService allocates a single background thread on which it calls PR_Poll. This is a core part of how asynchronous socket i/o is implemented by Necko.
--Darin _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib
