daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest May 7th, 2016 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var username = Configuration.PROJECT_NUMBER + "@" + Configuration.GCM_SERVER;
  2.         xmpp = new XmppClientConnection
  3.         {
  4.             UseSSL = true,
  5.             UseStartTLS = false,
  6.             Server = Configuration.GCM_SERVER,
  7.             ConnectServer = Configuration.GCM_SERVER,
  8.             Port = Configuration.GCM_PORT,
  9.             Username = username,
  10.             Password = Configuration.GCM_API_KEY,
  11.             AutoResolveConnectServer = true,
  12.             SocketConnectionType = SocketConnectionType.Direct,
  13.             AutoAgents = false,
  14.             KeepAlive = true,
  15.             AutoRoster = false,
  16.             AutoPresence = false,
  17.             UseCompression = false,
  18.             Show = ShowType.chat
  19.         };
  20.  
  21.         xmpp.OnReadSocketData += Xmpp_OnReadSocketData;
  22.         xmpp.OnWriteSocketData += Xmpp_OnWriteSocketData;
  23.         xmpp.OnLogin += Xmpp_OnLogin;
  24.         xmpp.OnMessage += Xmpp_OnMessage;
  25.         xmpp.OnError += Xmpp_OnError;
  26.         xmpp.OnClose += Xmpp_OnClose;
  27.         xmpp.OnAuthError += Xmpp_OnAuthError;
  28.  
  29.         xmpp.Open();
  30.  
  31.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top