Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void OpenXmppConnection(bool autoPresence,int port)
- {
- try
- {
- //check wheather the connection already establish or not
- if(xmppClientConnection==null) //check already connected?
- {
- xmppClientConnection = new XmppClientConnection();
- }
- xmppClientConnection.AutoPresence = true;
- xmppClientConnection.AutoResolveConnectServer = true;
- xmppClientConnection.Port = 5222;
- xmppClientConnection.UseSSL = false;
- xmppClientConnection.Server = "bilal@192.168.0.151";
- xmppClientConnection.Username = "bilal";
- xmppClientConnection.Password = "pass123";
- }
- catch(Exception ex)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement