Hi Christian: Christian Biesinger wrote: > Abhijit wrote: > > if (NS_FAILED(sockTransport->GetFileDescriptor(&fd))) > > (Wjat's GetFileDescriptor? I can't find such a function in my Gecko > source code) >
Yes, GetFileDescriptor is not a member in the IDL file for nsISocketTransport. > > 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). I agree. I tried accessing the file descriptor after sending and receiving data on the Socket Transport (via input and output streams) and I did get a valid socket descriptor. Thanks for the help! Abhijit > > -biesi _______________________________________________ Mozilla-netlib mailing list Mozilla-netlib@mozilla.org http://mail.mozilla.org/listinfo/mozilla-netlib