Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User Zaibach's Avatar
    Join Date
    Mar 2003
    Location
    Italy - Tourin
    Posts
    19
    After a lot of testing and investigating in 3-4 books and
    on internet I couldn’t find a good solution for this problem:

    I use the example of Inter Process Communication with Client Server Async Example ( in S60 SDK Symbian 8.0a).
    But I don't understand why when i close the Client the Server process also stopped.
    I also try to launch the server process from another applicatin also in this case when the client (with AppUi) perform the connection (through the Handler that manage the RSessionBase) it run correctly, but when i close the client (with exit) the server process died (maybe will kill).

    Anyone know why?
    What do i do for don't stop the server process?

  2. #2
    Registered User david.caabeiro's Avatar
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678
    Probably the server terminates (ie. CActiveScheduler::Stop()) when there isn't any connection left to it. Check the server code, and you should remove that functionality.

  3. #3
    Registered User Zaibach's Avatar
    Join Date
    Mar 2003
    Location
    Italy - Tourin
    Posts
    19
    Thank PushL.
    You are right!

    When i close the client the destructor of CSession call the iServer.DecrementSessions and them
    if ( iSessionCount <= 0 )
    {
    CActiveScheduler::Stop();
    }

    Thank you very much!

Similar Threads

  1. client server programming in j2me
    By mottaisami in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-09-05, 14:43
  2. how to use udp, for sending data server to client
    By acayir in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-08-02, 19:18
  3. Problem in reconnection from client to server
    By Palermo4Ever in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-06-19, 16:27
  4. Send multiple message from client to server
    By Palermo4Ever in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-06-19, 11:49
  5. [Bluetooth] Client and server at the same time?
    By titan_ordalie@yahoo.fr in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-08-26, 20:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved