Hi,
I'm using BluetoothClient.BeginConnect() / EndConnect() on WinXP to try to control the connect timeout and have a few questions. I'm using the following approach:
IAsyncResult
connectResult = client.BeginConnect()
connectResult.AsyncWaitHandle.WaitOne(m_connectTimeout,
false);
...
What I find is that if a pairing is required and a user does not respond to the pairing request that BeginConnect() completes long before the m_connectTimeout value.
1) Is there any way to control the timeout that BeginConnect() uses when a pairing request is required?
2) Irrespective of whether pairing is or is not required, does EndConnect() always have to be called?
3) Irrespective of whether pairing is or is not required, who is responsible for closing the Stream returned from BluetoothClient.GetStream() when the stream is passed into the ObexWebRequest(Uri, Stream) ctor?
Thanks,
-Mark