×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    229

    Question use RSocket:why the system cancel the connection?

    Hi,
    Everyone!

    I write a console app,

    I use "CActive" to connect socket, read and write data.

    But when I connect the server, the system cancel the connection

    and call the "Docancel" method.It is still cannot run "RunL" method,

    It's very strange!

    Please give me a hand, very thanks!
    Last edited by GFYsweetwood; 2009-05-02 at 09:51.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: use RSocket:why the system cancel the connection?

    Do you need a left hand or a right hand?
    Unfortunately the description is extremely short, lacking of any code snippets.
    Anyway, there is no such thing that "system cancels the connection and calls docancel". If the system would cancel something, your RunL would run, and you would get a KErrCancel in iStatus. It is only you who can invoke Cancel, which results in DoCancel. And you probably do that in your destructor. Which is probably invoked because you have not started the Active Scheduler, or just stopped it because of some other event.

Similar Threads

  1. how to cancel the connection selecting dialog when i try to lanuch the Browser
    By pku10601068 in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2008-08-19, 10:41
  2. how to abort or cancel a http connection
    By yavour in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2007-01-17, 20:26
  3. Read out Connection Manager GPRS
    By ArneH in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2004-11-10, 07:16
  4. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-08-31, 18:47
  5. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java General
    Replies: 0
    Last Post: 2004-08-31, 18:45

Posting Permissions

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