Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
Can i Find out XMPPServer(wildfire) Start or stop?
Avatar
liyasker #1
Member since Jan 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can i Find out XMPPServer(wildfire) Start or stop?
Hi

I am using agsXMPP 0.71 and wildfire Server 2.4.0

[ Can I find out the WildfireStatus using agsxmpp ]

this is my requirement :-

I am going to login wildfire , It may be Start or Stop.
Before login in wildfire i want to know the Wildfire status( Start / Stop ).
I want call the login method if the server state is start only.can you give me the solution.

Now i am using this code ... When the server stop XmppConnectionState should goes to disconnected.
But it is still on Connecting....it does not exit in the loop...


This is my part of code:-
  1. while (LoginClientConnection.XmppConnectionState.ToString() != "SessionStarted" &&
  2. LoginClientConnection.XmppConnectionState.ToString() != "Disconnected")
  3.                 {
  4.                      
  5.                 }
  6.                 if (LoginClientConnection.XmppConnectionState.ToString() == "Disconnected")
  7.                 {
  8.                     throw new ApplicationException("Cannot connect to XMPP for:" + LoginClientConnection.Username);
  9.                 }
by
sam
This post was edited on 2006-02-21, 11:10 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

I assume with Start and Stop status you mean if the servers is running or its not running.
If the server is not running and you try to connect with agsXMPP you will get an error.
So check the error events OnError and OnXmppError.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: