A question on Symbian Servers

Login to reply to this topic.
Tue, 2005-06-07 07:47
Joined: 2004-12-09
Forum posts: 78
Hi All I need to know one thing
In Symbian we have Server processes like RFs,Message Server ,Windows Server etc which are running in background providing various services to our applications and the system applications. Now if my application or some other application causes some server process to stop and I get a message like Messaging Server Closed  Then what is the action  taken by the OS to restart the  server process.?? Or the server process starts after sometime all by its own?? Or the OS uses some polling mechanism??
Any Ideas


Tue, 2005-06-07 11:36
Joined: 2004-07-28
Forum posts: 1379
Re: A question on Symbian Servers
Depends on the type of server.  Some system critical servers like the file server will be restarted.  Some, usually the ones you write yourself, won't be and any calls to methods from other clients (or the original client that causes the crash) will return with KErrServerTerminated and you have to disconnect and reconnect the session (which in tern, will start the server up again).

Point is the OS provides non of it for free, if you want your server to respawn, you have to do it.

didster

Tue, 2005-06-07 11:56
Joined: 2004-12-09
Forum posts: 78
Re: A question on Symbian Servers
Actually I am making use of  message server for my email based application . When I make use the default POP 3 client  application on the symbian phone and my pop3 based application at the same time it causes the message server to be stopped. So when I restart my application will it fire the message server as it needs to connect to it. Now you said that some critical server process would be restarted is Message Server a critical server I think so. Am I right ??
Girish
Wed, 2005-06-08 04:37
Joined: 2005-03-15
Forum posts: 94
Re: A question on Symbian Servers
In my opinion, Upon termination of the server subsequent call to "Connect" should take care of restarting the server.

Vivek Chopra

Wed, 2005-06-08 06:10
Joined: 2004-12-09
Forum posts: 78
Re: A question on Symbian Servers
I am facing a strange  problem in my application I have a pop3 module  which connects to the POP3 server after a given interval of say 2 minutes. Now if at the same time the End User uses the default Mobile Phone based application both the applications mine as well as the default application  try to use the same port and he same server . So at this moment the behaviiour of both the applications become unpredictable.
            The problem according to me is as both the applications are trying to communicate to the POP3 server via the same port 110 a contention is occuring making the server confused with different requests at same time. So I want to do synchronization b/w these two applications making sure only one application rus at a time .Any ideas how to acheive this??
Girish
  • Login to reply to this topic.