Your SlideShare is downloading. ×
0
group_1.ppt
group_1.ppt
group_1.ppt
group_1.ppt
group_1.ppt
group_1.ppt
group_1.ppt
group_1.ppt
group_1.ppt
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

group_1.ppt

807

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
807
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. P2P (Peer To Peer) <ul><li>Used: when applications need to communicate between devices. </li></ul><ul><li>Examples: </li></ul><ul><ul><li>Interactive game of checkers </li></ul></ul><ul><ul><li>Instant Messaging </li></ul></ul><ul><li>P2P can be implemented: </li></ul><ul><ul><li>XMPP </li></ul></ul><ul><ul><li>GTalkServices </li></ul></ul>
  • 2. XMPP <ul><li>E x tensible M essaging and P resence P rotocol </li></ul><ul><li>It is an open XML technology for real-time communication. </li></ul><ul><li>Used in applications such as: </li></ul><ul><ul><li>Instant Messaging </li></ul></ul><ul><ul><li>Whiteboarding </li></ul></ul><ul><ul><li>Shared Editing / Collaboration </li></ul></ul><ul><ul><li>Content Syndication </li></ul></ul>
  • 3. XMPP in detail <ul><li>The XMPP Standards Foundation (XSF) recognizes the following protocols: </li></ul><ul><li>-Jabber Client -Jabber Server -Presence and IM Session Establishment -Resource Binding -Server Dialback -Simple Authentication and Security Layer -S/MIME Encryption -Stanza Errors -Stream Errors -Transport Layer Security -XML Streams </li></ul>
  • 4. XMPP in Android <ul><li>Used for P2P communication </li></ul><ul><li>Used for always-on connection </li></ul><ul><li>Used to provide a way to send and receive Instant Messages </li></ul><ul><li>Later on, it was replaced by a Google branded GTalkService </li></ul>
  • 5. GTalkService <ul><li>GTalkService is built on open protocols such as XMPP and JINGLE </li></ul><ul><li>It is an open Service. </li></ul><ul><li>With GTalkService, one can build a client, connect his/her service with Google Talk or embed the client in web pages </li></ul><ul><li>GTalk is an instant messaging service built on the GTalkService API </li></ul>
  • 6. Differences between XMPP and GTalkService <ul><li>All of XMPP naming has been purged in favor of Gtalk. </li></ul><ul><li>IGTalkService now has group chat support </li></ul><ul><li>GTalkService APIs for message sending have been changed </li></ul><ul><li>New Services for controlling message/roster/presence notification </li></ul>
  • 7. GTalkService API new features <ul><li>Group Chat </li></ul><ul><li>File Transfer </li></ul><ul><li>Offline Messages </li></ul><ul><li>Voicemail </li></ul>
  • 8. XMPP Sample Code: <ul><li>// Create a connection   </li></ul><ul><li>ConnectionConfiguration connConfig =                   new ConnectionConfiguration( </li></ul><ul><li>host, Integer.parseInt(port), service);   </li></ul><ul><li>XMPPConnection connection =  </li></ul><ul><li>new XMPPConnection(connConfig);  </li></ul>
  • 9. Important Links: <ul><li>ANDROID sample program using XMPP: http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/ </li></ul><ul><li>XMPP Information </li></ul><ul><li>http://www.xmpp.org/about/ </li></ul><ul><li>Differences between XMPP and GTalk Service: </li></ul><ul><li>http://code.google.com/android/migrating/m3-to-m5/m5-api-changes.html </li></ul><ul><li>Google Talk </li></ul><ul><li>http://code.google.com/apis/talk/index.html </li></ul><ul><li>GtalkService package summary: </li></ul><ul><li>http://code.google.com/android/reference/com/google/android/gtalkservice/package-summary.html </li></ul><ul><li>Google Talk XMPP Extensions </li></ul><ul><li>http://code.google.com/apis/talk/jep_extensions/extensions.html </li></ul>

×