Your SlideShare is downloading. ×
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

800

Published on

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

  • Be the first to like this

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

×