×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Connection Status

    Hi,

    I have a connection DLL which deals with connnecting GPRS and notifying the status using progressnotification of .
    I am using this DLL in my Server to connect and notify the status.
    Now i want my client(UI) to be notified the connection status whenever it changes and i dont want to use Client Server.
    I am able to reteive the status in UI when i create an instance of Connection and say ConnectL.
    But, I dont want to issue connectL. I want the status on an IAP without issuing ConnectL.

    Please let me know if some1 has any updates regarding the same.

    Regards,
    Kanwal

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Connection Status

    i donot think you can get a Connection status with out connecting to server. or issuing ConnectL

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Re: Connection Status

    I noticed that the browser is able to detect the connection when i connect from any other application.
    so there might be something which gives us the status without issuing connectL.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Connection Status

    This will give you all active connections
    Code:
    TBool AnyActiveConnectionsL()
        {
        RSocketServ sockServ;
        User::LeaveIfError(sockServ.Connect());
        RConnection connection;
        User::LeaveIfError(connection.Open(sockServ));
        TUint count = 1;
        User::LeaveIfError(connection.EnumerateConnections(count));
        connection.Close();
        sockServ.Close();
        return (count > 0);
        }

Similar Threads

  1. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33
  2. Getting started with Carbide.vs -- running the app
    By ET3D in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-11-23, 17:45
  3. How to get connection status ?
    By abovesun in forum Symbian
    Replies: 0
    Last Post: 2004-06-02, 07:53
  4. How to get connection status ?
    By abovesun in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-05-31, 14:45
  5. Replies: 5
    Last Post: 2003-02-07, 11:25

Posting Permissions

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