Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jun 2006

    Parallel HTTP Connections using Active Objects


    I have to develop an application in which i have to create two parallel HTTP connections. I have two queries.

    1) Would it be appropriate to use active objects for the application.
    2) For the GUI application if i make each of the connections via an active object then do I need to create an active scheduler.
    3) I tried creating my own active scheduler but i get E32User CBase 46 panic.


  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Parallel HTTP Connections using Active Objects

    All GUI applications inherently run inside an Active Scheduler. You need not and cannot create+install your own one:
    Quote Originally Posted by SDK Help
    void Install(CActiveScheduler *aScheduler);
    E32USER-CBase 43 if If there is already an installed active scheduler.
    I do not know the HTTP API, however if it requires you to provide TRequestStatus & as argument of certain methods, you will need Active Objects. If it works via callback methods and no TRequestStatus &, you will need two objects (and probably two classes, if they should behave differently) implementing the required interface, but they do not have to be AO-s.

  3. #3
    Regular Contributor
    Join Date
    May 2006

    Re: Parallel HTTP Connections using Active Objects

    hi ctrl-d,

    U can make two connection using the AOs.But u dont need to create ur own Active Schedular.

    The HTTP API is an Asyncronous call, so u need to use the AO to make the connection with remote device if u r using RConnection API.

    Make three classes, On to holds the connection class, Connection Class and the Connection Opener class.

    1)Do open and close connections in Connection Opener, it should be AO.

    2)Connection class has obeserver class for connection Opener and RConnection callback methods.

    3)Connection Handler creates the instance of the connection class, so u can make any no of instances of the connection class here and make the connection also.

    Just u need to some well-define architecture.I gave simple structure.


Similar Threads

  1. Socket connections and active objects
    By ahlmans in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-11-23, 09:56
  2. Replies: 6
    Last Post: 2007-08-03, 04:04
  3. Active objects in EXE second thread
    By inguvaseshu in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2006-08-10, 05:35
  4. using active objects
    By dgobin in forum Symbian
    Replies: 0
    Last Post: 2003-10-22, 16:08
  5. panicking active objects
    By kratom in forum Symbian
    Replies: 0
    Last Post: 2003-04-18, 07:20

Posting Permissions

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