×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    18

    How to detect a disconnect

    Hi!

    I have a BT application (on Nokia 7650) that communicates with a Serial Port Service on a PC. When the application has an outstanding receive operation I disconnect from the PC side.

    In the EPOC code the receive operation is completed with KErrDisconnected. When detecting this event, I close the connection from the phone side using RSocket::Shutdown(...). When this completes I initiate a new connection request, which always results in an error that the max. number of bluetooth connections are already in use. After some seconds the connection attempt is successful. It looks as if the completion of the shutdown request did not mean the the connection is really broken down.

    What is the correct way to detect that the connection is really terminated? Or what can be the reason of the above mentioned unsuccessful reconnection attempt?

    (I could reproduce the same problem with the BTPointToPoint example from the SDK.)

    Thanks in advance
    glr.

  2. #2
    Registered User
    Join Date
    Oct 2003
    Location
    Oulu
    Posts
    18
    Hi,

    http://discussion.forum.nokia.com/fo...threadid=32665

    I have noticed the same thing... but haven't had any answers yet and haven't found out a better way of solving that problem...

    I was hoping trat some (Nokia) expert would give some advice but that doesn't seem to be happening

    BR, Hans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×