Mastering the XMPP framework

848 views
Skip to first unread message

Peter

unread,
Dec 4, 2013, 5:23:32 AM12/4/13
to xmppfr...@googlegroups.com
Hi to all,

My name is Peter and I have been working with this framework for a long time.

Next to being an iOS developer I am also an author of iOS books (http://www.yourdeveloper.net/iosbooks/)
In my ebook series Mastering the ... Framework, there are two volumes ready of which one is published (Mastering the SpriteKit framework)
The second volume, Mastering the Accounts and Social framework is in progress of publication and will be available later this month.

The third volume I am preparing is Mastering the XMPP framework.
I know from experience and from this group's conversations there are a lot of questions around how to implement the framework into a full application.
Objective of the book will be to explain XMPP in general and this framework in detail resulting in a complete iOS application including of course chat, multi room chat, file transfer (sending and receiving) , configuration etc.

I am making this post to ask you all the following questions and would really appreciate if you can reply

1° if this eBook would be available (estimated 200 pages) would you consider buying it ($14,99 for iPad/Kindle)?
2° Are there specific topics you would like to have covered in depth?
3° In all my books there is a lot of coding samples/real applications, what would you like to see as a fully operational application based on this framework?


Thanks in advance to take the time to answer these questions.

My planning is to finalise the manuscript in December 2013 and publish mid January 2014

Regards
Peter

Strickidinho

unread,
Dec 4, 2013, 3:52:03 PM12/4/13
to xmppfr...@googlegroups.com
Hi Peter,

I would definitely buy such a book!

Cheers,
Sandro

Robbie Hanson

unread,
Dec 4, 2013, 5:42:10 PM12/4/13
to xmppfr...@googlegroups.com
1° if this eBook would be available (estimated 200 pages) would you consider buying it ($14,99 for iPad/Kindle)?
Absolutely !

 2° Are there specific topics you would like to have covered in depth?
There are a few topics that might be instructive to mention (though not necessarily covered in depth) as these are often sticking points for those new to the framework :

- How to enable logging within the framework, specifically turning on logging to see the raw send/recv stanzas.
- A mention about pluggable authentication, and facebook authentication, so the user knows that authentication itself can be extended to meet the needs of their app.
- GCDMulticastDelegate : why it’s used, and how it works.
- The asynchronous nature of the entire framework (including connecting and sending messages), and how delegate callbacks are used
- The concurrent nature of the framework, including how extensions run concurrently in their own dispatch queue (and sometimes storage classes also run concurrently)


This is great news Peter! Let us know when it’s finished so we can add a link to it from the project page.

-Robbie Hanson

--
You received this message because you are subscribed to the Google Groups "XMPPFramework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmppframewor...@googlegroups.com.
To post to this group, send email to xmppfr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xmppframework/3b969c2a-a9a2-46d9-8167-69739f9b000b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michael

unread,
Dec 7, 2013, 8:16:17 AM12/7/13
to xmppfr...@googlegroups.com
I would buy it for sure Peter.

If possible could you please ensure all examples are full working examples rather than just lots of fragmented code.  I'm a beginner, and the trouble I find is that a lot of books assume you know x y z, or that you have done section 4.1c in order to run a certain piece of code. So for example, if you are showing how to send a chat message, show a full working example so beginners can experiment - just a thought.

From my own selfish view, it would be great if there was a tutorial on how to setup a barebones chat app to send and receive messages.

Funny you mention the logging Robbie, I've just posted about how why mine isn't working :-( So that would be a great topic to include in the book.

Would Robbie Hanson be a technical reviewer?!

Peter

unread,
Dec 7, 2013, 9:10:19 AM12/7/13
to xmppfr...@googlegroups.com
Michael,
The book will explain all details on XMPP and how to implement and customise the framework.
The end product is a full operational iOS 7 application with chat, mud, file transfer (the most common features)
so not snippets but as in all m books real world examples like my book Professional iOs programming (wrox) with 70 examples
more info here

Robbie Hanson

unread,
Dec 7, 2013, 2:06:22 PM12/7/13
to xmppfr...@googlegroups.com
Would Robbie Hanson be a technical reviewer?!
I’m not really sure what entails being a technical reviewer. But I’d be happy to look over anything if you’d like. If you don’t need my help, no worries. I won’t be offended in any way.

-Robbie Hanson

--
You received this message because you are subscribed to the Google Groups "XMPPFramework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmppframewor...@googlegroups.com.
To post to this group, send email to xmppfr...@googlegroups.com.

Peter

unread,
Dec 9, 2013, 11:24:41 AM12/9/13
to xmppfr...@googlegroups.com
Thanks for all responses.
Since I have started some time ago I can tell you all page 95 has been written today.
Planning:
- manuscript ready early next week
- proofreading and editing mid December
- available on amazon and iBooks early January

Follow me on www.yourdeveloper.net to stay updated
Peter

Peter van de Put

unread,
Dec 16, 2013, 8:41:37 AM12/16/13
to xmppfr...@googlegroups.com
Robbie
Can you send me your private email to info[@]yourdeveloper.net I would like check some things with you in the context of this book
Peter

Robbie Hanson

unread,
Dec 16, 2013, 3:05:56 PM12/16/13
to xmppfr...@googlegroups.com
Can you send me your private email
Sent. (in separate email)

-Robbie Hanson

hossein ghahramani

unread,
Dec 21, 2013, 9:05:43 AM12/21/13
to xmppfr...@googlegroups.com
Hi peter,
As you know, There is  no complete source to implement XMPP in to an iOS application. After a lot of googling I found This post! I'm waiting for this book to get published and I definitely would Buy one.
  • Can you post here The table of contents?
  • Is there any chapter covering Jingle, VOIP, Multimedia, Voice/Video Chat, ...?
  • A fully operational application could be something like Wechat, Whatsapp, Viber specially with voice and video chat capability.
  • When your book exactly get published?

Peter van de Put

unread,
Dec 21, 2013, 9:08:15 AM12/21/13
to xmppfr...@googlegroups.com
Hi
The manuscript is ready and with my technical editor as we speak
I expect it to be available mid January 2014

TOC
 Acknowledgements 4

Introduction 5

Who This Book Is For 7

What This Book Covers 8

What You Need to Use This Book 8

Conventions 8

Source Code 9

Stay Updated 9

Chapter 1 Introduction to XMPP 15

WHAT’S IN THIS CHAPTER? 15

Understanding the XMPP Architecture 16

Streaming XML 16

Addresses, Domains and User ID’s 17

Resources 17

Stanzas 18

Chapter 2 Introduction to the framework 21

WHAT’S IN THIS CHAPTER? 21

Getting Started 21

Understanding the Connection Process 26

What’s in the Framework 27

The XMPP Core 27

XMPP framework Logging Support 29

XMPP Extensions / Modules 30

Understanding MulticastDelegates 31

Chapter 3 Creating the Application Basics 33

WHAT’S IN THIS CHAPTER? 33

Creating the Navigation Structure 35

Helper classes 36

Definitions 36

Creating the Menu 37

Implementing the Menu 38

Adding the XMPP Framework 41

Chapter 4 Connect to XMPP 47

WHAT’S IN THIS CHAPTER? 47

Implementing the XMPP framework 47

Creating a User Account 65

Inband Account Registration 65

User Service Registration 67

Custom Registration 69

Chapter 5 Understanding Rosters 70

WHAT’S IN THIS CHAPTER? 70

Displaying the Roster 71

Managing the Roster 75

Inviting a User 77

Other Roster Strategies 78

Chapter 6 Sending and Receiving Messages 80

WHAT’S IN THIS CHAPTER? 80

Application Structure 81

YDChatOverviewController 81

YDConversationViewController 81

Data storage 81

Running in the Background 82

Implementing the CoreData model 82

Implementing the YDChatOverViewController 92

Implement the NSDate-Utilities category 93

Implementing the YDConversationViewController 109

Chapter 7 Adding File Transfer 123

WHAT’S IN THIS CHAPTER? 123

In-Band Bytestreams (IBB) 123

Out-Of-Band Bytestreams 124

Using a Proxy Server 124

SOCKS5 Bytestreams 125

Implementing Filetransfer using SOCKS5 and SI 127

Updating Capabilities 128

Receiving a file 133

Sending a file 166

Troubleshooting File Transfers 202

Chapter 8 Multi User Chat 203

WHAT’S IN THIS CHAPTER? 203

Configuring the XMPP Server 203

What’s in the XMPP framework 205

Implementing Mutli User Chat 206

Updating CoreData model 212

Being the Initiator 213

Creating a Room 214

Configuring a Room 215

Inviting Participants 217

Being a Participant 218

Receiving an Invitation 218

Joining a Room 220

Leaving a Room 220

Deleting a Room 220

Receiving & Sending Messages 220

Regards
Peter
--
You received this message because you are subscribed to the Google Groups "XMPPFramework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmppframewor...@googlegroups.com.
To post to this group, send email to xmppfr...@googlegroups.com.

Alexander

unread,
May 9, 2014, 7:37:50 AM5/9/14
to xmppfr...@googlegroups.com
Hi Peter,

Is it published already?

Alexander.


On Saturday, December 21, 2013 3:08:15 PM UTC+1, Peter wrote:
Hi
The manuscript is ready and with my technical editor as we speak
I expect it to be available mid January 2014

TOC
 Acknowledgements 4
...

Oleg Chubukov

unread,
May 10, 2014, 6:06:51 AM5/10/14
to xmppfr...@googlegroups.com
The book is published. Just google for "mastering xmpp framework book" and choose a way you want.

zgal3i

unread,
May 20, 2014, 4:45:01 PM5/20/14
to xmppfr...@googlegroups.com
Hi Peter
I am interested in your book and I wanted to buy it except that I didn't understand this Kindle format I want a simple version like PDF for example

Peter

unread,
May 20, 2014, 4:51:36 PM5/20/14
to xmppfr...@googlegroups.com
Hi 
on this link
PDF version is also available
Peter
Reply all
Reply to author
Forward
Message has been deleted
0 new messages