Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Oct 2010

    RConnectionMonitor + RConnection problem

    Hi all,

    I am using the RConnectionMonitor to get new events about connection.
    I successfully get creation/deletion of IAP (even though deletion's IAP id is always wrong - but that's not the question here).
    When getting WLAN IAP created, I trigger a http GET request using the newly-created IAP. Here comes the problem:

    ********* code ************
    void MyClass::EventL(const CConnMonEventBase &aConnMonEvent)
    TInt event = aConnMonEvent.EventType();
    if(event == EConnMonCreateConnection)
    // get IAP id
    TUInt32 iap = ....

    void httpClass::TriggerHTTPL(TUint32 iap)
    iSession.OpenL(); // RHTTPSession
    User::LeaveIfError(iSocketServ.Connect()); // RSocketServ
    User::LeaveIfError(iConnection.Open(iSocketServ)); //RConnection

    TCommDbConnPref connectPref;
    // Setup preferences
    // Sets the CommDb ID of the IAP to use for this connection
    // Start connection
    RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();

    ... rest of code for http GET/POST request

    *********** end code ******************

    PROBLEM: after calling iConnection.Start(connectPref), events are no longer received from RConnectionMonitor
    I tried:
    - closing the iConnection -> does not help
    - calling iConnectionMonitor.CancelNotifications() before triggering calling TriggerHTTPL() and
    re-calling iConnMon.NotifyEventL to get new events --> does not help

    What I am missing here ? It seems using the connection affects RConnectionMonitor's internal behavior ..
    Or is it a known issue ??

    Hope someone can help ...
    Last edited by cglolo; 2010-11-24 at 05:38.

Similar Threads

  1. RConnection::Start() and RConnection::Stop() causes ViewSrv 11
    By er.khalid in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2011-04-12, 09:52
  2. RConnectionMonitor problem
    By mundial in forum Symbian
    Replies: 41
    Last Post: 2009-04-17, 09:35
  3. RConnectionMonitor problem. Pls help!!
    By psonali in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2009-04-09, 10:19
  4. difference between RConnection and RConnectionMonitor
    By jypaek77 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-03-09, 06:07
  5. RConnectionMonitor API problem;Help me
    By mundial in forum Symbian
    Replies: 1
    Last Post: 2009-02-20, 17:16

Posting Permissions

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