Advertisement
Guest User

Untitled

a guest
May 7th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  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. }
  32.  
  33. To CCS<<11:59:58 834
  34. <stream:stream to='gcm.googleapis.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  35.  
  36. From CSS>> 11:59:59 037
  37. <stream:stream from="gcm.googleapis.com" id="AF8BB607948BF55F" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
  38.  
  39.  
  40. From CSS>> 11:59:59 101
  41. <stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
  42.  
  43.  
  44. To CCS<<11:59:59 115
  45. <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">ADIwNjAxOTEwOTA2Mlw0MGdjbS5nb29nbGVhcGlzLmNvbQBBSXphU3lESnhaa2tFX3hIcm56NXhWZndJclpFUmlMbnBqNVFIdkk=</auth>
  46.  
  47.  
  48. From CSS>> 11:59:59 312
  49. <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>ism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
  50.  
  51.  
  52. From CSS>> 11:59:59 314
  53. </stream:stream>urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>ism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement