code_junkie

What are good sources to study the threading implementation of a XMPP application?

Nov 11th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. stanza = null
  2. while parser has more:
  3. switch on token type:
  4. START_TAG:
  5. elem = create element from parser state
  6. if stanza is not null:
  7. add elem as child of stanza
  8. stanza = elem
  9. END_TAG:
  10. parent = parent of stanza
  11. if parent is not null:
  12. fire OnStanza event
  13. stanza = parent
Add Comment
Please, Sign In to add comment