Abhijit wrote:
  if (NS_FAILED(sockTransport->GetFileDescriptor(&fd)))

(Wjat's GetFileDescriptor? I can't find such a function in my Gecko source code)

 I think fd should not contain a null value and should point to the
socket descriptor for the socket connection that has been established.

You'll have to wait until DNS resolution is complete at least, no? It'd probably be wise to wait until the connection is established too.

That is, wait for a STATUS_CONNECTING_TO (DNS lookup complete, socket created, connecting) or STATUS_CONNECTED_TO (connection established) message (via nsITransportEventSink).

-biesi
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to