Discussion Board

Results 1 to 4 of 4

Threaded View

  1. #1
    Regular Contributor
    Join Date
    Feb 2004

    Socket Disconnected on second attempt

    hi there...
    i'm sending data using RSocket from Sockets Example provided by symbian sdk.

    after engine state is EConnected, i send the data using

    Read(); //start CSocketsReader AO to read response

    in CSocketsReader using RecvOneOrMore() and call SetActive until KErrEof.
    and then called iEngine->ResponseReceived() to parse the response..
    after parsing the response, i called a function that prepared the next data and called

    the first operation is succeed adn iTranStatus is 0 (KErrNone)
    the last operation is failed and the iTranStatus is -36 (KErrDisconnected)
    i never called disconnect();

    do u know why is that happened? and how can i maintain a socket connection stay connected?
    i read from the documentation that RecvOneOrMore() function when receiving KErrEof, indicates that a remote connection is closed and that no more data is available for reading, or the socket has been shutdown with option EStopInput.

    is "that a remote connection is closed and that no more data is available for reading.." means that we cannot write again to remote server?

    really need help

    Last edited by Rx-lee; 2005-04-01 at 09:43.

Posting Permissions

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