×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    14

    How to get the error code of RSocket::Read()

    Hello all,

    I am writing an socket program and using the RSocket::Read() to read data.
    But the return status is neither ErrNone, nor ErrEof. And the program can't receive the data correctly. I have to know the exact return value of this function and solve the receiving problem.
    Does anybody knows how to print the return status code?
    I am new to Symbian, and I have already tried lots of ways, but it still can't work.
    Thanks for answering. :>

  2. #2
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    51

    Re: How to get the error code of RSocket::Read()

    Check what is the value of the TRequestStatus that you pass into Read. You can get the TInt value by calling the Int() function. Look up that code to find out why your call failed.

Similar Threads

  1. A question about RSocket::read()
    By feiyun in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-09-02, 16:33
  2. Problem in using RSocket::Read() Recv()
    By rensijie in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-08-12, 15:58
  3. Problem in using RSocket::Read() Recv()
    By rensijie in forum Symbian
    Replies: 1
    Last Post: 2006-08-11, 18:42
  4. question about RSocket::Read() usage.
    By kernj in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-12-05, 08:23
  5. Reading given number of bytes with RSocket::Read()
    By luweiewul in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-07-15, 05:57

Posting Permissions

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