Following the connection process

By using the OnStateChanged and OnConnectionError events, we have a simple mechanism with which we can follow the connection process. We also become aware of the Full JID of the connection, once the connection has become active and you're fully connected to the XMPP network:

private void StateChanged(object Sender, XmppState State) 
{ 
Log.Informational("Changing state: " + State.ToString()); 
 
if (State == XmppState.Connected) 
Log.Informational("Connected as " + 
this.xmppClient.FullJID); 
} 
 
private void ConnectionError(object Sender, Exception ex) 
{ 
Log.Error(ex.Message); 
} 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.44.108