Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2009

    Question RSocket::Read() failed!

    Hi,everybody! There is a promble:
    When I use Read() to receive data from romote BT device, it's blocked! But if I use RecvOneOrMore(), it's ok.

    Codes followed:

    delete iDatagramBuffer;
    iDatagramBuffer = NULL;
    iDatagramBuffer = HBufC8::NewL( BufferLength );
    iSocket.Read(iPtr, iStatus); //blocked!

    TSockXfrLength MaxLength = 2000; //ok!
    iSocket.RecvOneOrMore(iPtr, 0, iStatus, MaxLength);

    How I can use Read() successful? Please help me!

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: RSocket::Read() failed!

    maybe you could try using RecvOneOrMore.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: RSocket::Read() failed!

    RTFM maybe? Read completes when the given buffer is full, or some error happens.

Similar Threads

  1. Working on emulator but not on the phone!!!
    By bravvve in forum Symbian
    Replies: 7
    Last Post: 2009-09-23, 06:01
  2. HelloWorldBasic's Issue
    By bluescorpio1107 in forum Symbian
    Replies: 4
    Last Post: 2009-09-04, 14:41
  3. S60 5th ed emulator startup failed
    By hony in forum Symbian Tools & SDKs
    Replies: 8
    Last Post: 2009-08-11, 21:12
  4. emulator startup failed
    By hony in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-11-11, 06:07
  5. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08

Posting Permissions

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