×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    3

    Problems with L2cap socket

    Hi all,
    When I Sending data continuously and last for 30 or 40 minutes, I received 3 error codes -10, -39 or -36 and the L2CAP connection drop.

    what's wrong with my program?

    /////////////////////////////////
    SendData
    {
    ...
    iL2dapSocket.Write(iAvdtpMediaPacket,iStatus);
    SetActive();
    }

    RunL()
    {

    if( (iStatus.Int() != KErrNone) )
    {
    ...// here I receive -10,-39 or -36
    }
    ...
    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    according to this:
    http://www.newlc.com/article.php3?id_article=117

    they are: Underflow, Interrupted, and disconnected.

    is the iAvdtpMediaPacket, a class member variable ? so it will stay valid in all ways, untill the RunL is called ?

    yucca

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    3
    After checking my engine's machine state, I found Underflow comed from another function and I fixed it.
    Now the L2CAP transmission persists 1 hour or above, but -39(KErrAbort) or -36(Disconnected) still come in the end. Would anybody give me a hint?

    iAvdtpMediaPacket is a class member variable and it will stay valid in all ways, untill the RunL is called.

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    3
    After checking my engine's machine state, I found Underflow comed from another function and I fixed it.
    Now the L2CAP transmission persists 1 hour or above, but -39(KErrAbort) or -36(Disconnected) still come in the end. Would anybody give me a hint?

    iAvdtpMediaPacket is a class member variable and it will stay valid in all ways, untill the RunL is called.

Posting Permissions

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