Property ServerState what is the return numbers mean???

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

Property ServerState what is the return numbers mean???

Post by Pern » 2006-09-14 02:01

Property ServerState As eServerState
Returns the current state of the server

i got it to return a value of 3 what are the posible return numbers and there meanings??

thankyou in advance for your time in this mater
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

gruenie
Senior user
Senior user
Posts: 299
Joined: 2004-01-23 03:25
Location: Germany, Halle

Post by gruenie » 2006-09-14 15:55

Yes, the same question here! :-)
If I'm right, "1" means stopped and "3" means running.
Are there other possibilities?

I would like to add the question, if the status numbers will be the same also in coming releases of hmailserver or could it be that they change?
Gruenie

User avatar
martin
Developer
Developer
Posts: 6835
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-09-14 19:22

Added to the documentation.
http://www.hmailserver.com/documentatio ... pplication

Status numbers will remain the same unless functionality changes or is removed. The API is generally backwards compatible.

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

Post by Pern » 2006-09-14 23:05

thank you

gruenie
Senior user
Senior user
Posts: 299
Joined: 2004-01-23 03:25
Location: Germany, Halle

Post by gruenie » 2006-09-15 00:59

Thank you from me too!
Gruenie

iprat
Normal user
Normal user
Posts: 247
Joined: 2005-05-20 16:50
Location: Barcelona, EU
Contact:

Post by iprat » 2006-09-15 09:16

Just to comment to Martin that probably:

hStateStopping = 4, Server is running.

probably was meant to be:

hStateStopping = 4, Server is stopping. ;)

gruenie
Senior user
Senior user
Posts: 299
Joined: 2004-01-23 03:25
Location: Germany, Halle

Post by gruenie » 2006-09-15 16:04

Hi Iprat,
sure you are right and it is probably a typing/copy-error,
but nevertheless, if we are absolutely exact:
While the server is stopping he is still running, becaue if he
wouldn't run, why you would need to stop it? :lol:

Gruenie

iprat
Normal user
Normal user
Posts: 247
Joined: 2005-05-20 16:50
Location: Barcelona, EU
Contact:

Post by iprat » 2006-09-15 16:45

Sure gruenie !!! :D It must be still running to be stopping :D :D :D

User avatar
martin
Developer
Developer
Posts: 6835
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-09-15 17:25

(I updated the docs this morning)

Post Reply