Advertisement
Guest User

Untitled

a guest
Oct 7th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. public void OpenXmppConnection(bool autoPresence,int port)
  2. {
  3. try
  4. {
  5. //check wheather the connection already establish or not
  6. if(xmppClientConnection==null) //check already connected?
  7. {
  8. xmppClientConnection = new XmppClientConnection();
  9. }
  10. xmppClientConnection.AutoPresence = true;
  11.  
  12. xmppClientConnection.AutoResolveConnectServer = true;
  13. xmppClientConnection.Port = 5222;
  14. xmppClientConnection.UseSSL = false;
  15. xmppClientConnection.Server = "bilal@192.168.0.151";
  16. xmppClientConnection.Username = "bilal";
  17. xmppClientConnection.Password = "pass123";
  18.  
  19. }
  20. catch(Exception ex)
  21. {
  22.  
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement