jdev - 2020-06-16

  1. kikuchiyo has joined
  2. alexis has left
  3. sonny has left
  4. sonny has joined
  5. alexis has joined
  6. waqas has left
  7. kikuchiyo has left
  8. adiaholic_ has left
  9. Wojtek has left
  10. Neustradamus has left
  11. Neustradamus has joined
  12. kikuchiyo has joined
  13. Neustradamus has left
  14. Neustradamus has joined
  15. neustradamus has joined
  16. neustradamus has left
  17. Neustradamus has left
  18. Neustradamus has joined
  19. Neustradamus has left
  20. Neustradamus has joined
  21. sonny has left
  22. sonny has joined
  23. kikuchiyo has left
  24. kikuchiyo has joined
  25. Yagizа has joined
  26. sonny has left
  27. sonny has joined
  28. kikuchiyo has left
  29. paul has joined
  30. sonny has left
  31. sonny has joined
  32. wurstsalat has joined
  33. sonny has left
  34. sonny has joined
  35. kikuchiyo has joined
  36. Neustradamus has left
  37. Neustradamus has joined
  38. Neustradamus has left
  39. Neustradamus has joined
  40. Neustradamus has left
  41. Neustradamus has joined
  42. debacle has joined
  43. alexis has left
  44. alexis has joined
  45. Guus has left
  46. Guus has joined
  47. asterix has joined
  48. kikuchiyo has left
  49. adiaholic_ has joined
  50. sonny has left
  51. sonny has joined
  52. Alex has joined
  53. kikuchiyo has joined
  54. sonny has left
  55. sonny has joined
  56. kikuchiyo has left
  57. xecks has joined
  58. daidoji has left
  59. adiaholic_ has left
  60. adiaholic_ has joined
  61. kikuchiyo has joined
  62. Neustradamus has left
  63. paul has left
  64. paul has joined
  65. asterix has left
  66. asterix has joined
  67. asterix has left
  68. asterix has joined
  69. daidoji has joined
  70. Beherit has left
  71. Beherit has joined
  72. debacle has left
  73. adiaholic_ has left
  74. adiaholic_ has joined
  75. adiaholic_ has left
  76. adiaholic_ has joined
  77. waqas has joined
  78. waqas has left
  79. Neustradamus has joined
  80. alexis has left
  81. adiaholic_ has left
  82. adiaholic_ has joined
  83. lovetox has joined
  84. DebXWoody has joined
  85. DebXWoody Hi. If I get a <message/> and I will check what's the message. Should I check the <name> of the child or shall I check the ns of the child?
  86. Ge0rG an XML element is uniquely identified by the combination of namespace and tag name
  87. DebXWoody libstrophe provides two functions 'xmpp_stanza_get_child_by_ns' and 'xmpp_stanza_get_child_by_name'.
  88. DebXWoody Ge0rG, I see, thanks!
  89. MattJ Yes, any sensible API should let you combine both
  90. lovetox yeah that api makes no sense
  91. Ge0rG DebXWoody: there are implementations that only use the tag name, because *often* tag names are globally unique. And then you can get very far until horrible things start to happen in silent and hideous ways
  92. DebXWoody The api also provides this kind of message: xmpp_handler_add (xmpp_conn_t *const conn, xmpp_handler handler, const char *const ns, const char *const name, const char *const type, void *const userdata). But I try to understand.
  93. lovetox also child? there can be children of "nam"
  94. lovetox also child? there can be children of "name"
  95. lovetox does it return a list?
  96. Zash Also keep in mind that there's not a single child, each stanza (as well as any xml element) may have 0 or more child nodes (modulo schema etc)
  97. DebXWoody lovetox, Looks like just the first element.
  98. Ge0rG I think it would be a clean approach to define a handler for a certain namespace, and that handler would get passed all tags with that namespace
  99. Zash iterators are also nice
  100. DebXWoody Now, I see! This may the reason why the implementation in profanity looks little bit complex. Calling a handler is just based on the first xml element. If the handler has to check what's the stanza about, it should check for something like 'list of stanza' get_stanza(name, ns).
  101. debacle has joined
  102. debacle has left
  103. debacle has joined
  104. lovetox has left
  105. goffi has joined
  106. Lance has joined
  107. Wojtek has joined
  108. DebXWoody has left
  109. adiaholic_ has left
  110. adiaholic_ has joined
  111. lovetox has joined
  112. wurstsalat has left
  113. wurstsalat has joined
  114. paul has left
  115. paul has joined
  116. waqas has joined
  117. eta has left
  118. eta has joined
  119. Yagizа has left
  120. adiaholic_ has left
  121. adiaholic_ has joined
  122. asterix has left
  123. asterix has joined
  124. asterix has left
  125. asterix has joined
  126. Beherit has left
  127. Beherit has joined
  128. drops has left
  129. drops has joined
  130. drops has left
  131. drops has joined
  132. Beherit has left
  133. alexis has joined
  134. lovetox has left
  135. Beherit has joined
  136. Beherit has left
  137. Beherit has joined
  138. alexis has left
  139. alexis has joined
  140. Beherit has left
  141. Beherit has joined
  142. drops has left
  143. drops has joined
  144. asterix has left
  145. asterix has joined
  146. goffi has left
  147. Beherit has left
  148. Beherit has joined
  149. Beherit has left
  150. Beherit has joined
  151. Beherit has left
  152. Beherit has joined
  153. Lance has left
  154. Beherit has left
  155. Beherit has joined
  156. Lance has joined
  157. Beherit has left
  158. Beherit has joined
  159. asterix has left
  160. eta has left
  161. eta has joined
  162. xecks has left
  163. paul has left