.NET Components for Mobility

Can I use ReadTimeout and WriteTimeout in BluetoothClient.GetStream()??

Last post 10-01-2007 5:47 AM by alanjmcf. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-28-2007 2:21 AM

    • lance
    • Top 500 Contributor
    • Joined on 08-30-2007
    • Posts 2

    Can I use ReadTimeout and WriteTimeout in BluetoothClient.GetStream()??

    I want to set timeout to the read and write function,

    but when I read the CanTimeout value ,it is false? (BluetoothClient.GetStream() = false)

     

    How can I use this ?

     

     

  • 10-01-2007 5:47 AM In reply to

    Re: Can I use ReadTimeout and WriteTimeout in BluetoothClient.GetStream()??

    Well that stream is simply a standard System.Net.Sockets.NetworkStream.  What platform are you running on?  CFv1?

    I've just realised that timeouts aren't supported on CFv2.  The Stream has the three properties, but they're not implemented, CanTimeout returns false and ReadTimeout and WriteTimeout throw an exception.  See e.g. http://www.codeplex.com/32feet/WorkItem/View.aspx?WorkItemId=6597

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
Page 1 of 1 (2 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.