[jdev] Splitting the stream

2006-11-01 Thread Michal 'vorner' Vaner
Hello, Do you think, if I have the XML stream (incoming one) and I want to split it, is it enough to count starting and ending tags, or they could be embedded in something like attribute? (eg. is tag attr='tag'/ a legal thing or not?). And, if I have these split things and insert them between the

Re: [jdev] Splitting the stream

2006-11-01 Thread Matthias Wimmer
Hi Michal! Michal 'vorner' Vaner schrieb: Do you think, if I have the XML stream (incoming one) and I want to split it, is it enough to count starting and ending tags, or they could be embedded in something like attribute? (eg. is tag attr='tag'/ a legal thing or not?). tag attr='tag'/ is

Re: [jdev] Splitting the stream

2006-11-01 Thread Norman Rasmussen
On 11/1/06, Michal 'vorner' Vaner [EMAIL PROTECTED] wrote: Do you think, if I have the XML stream (incoming one) and I want to split it, is it enough to count starting and ending tags, yes, this is the best way. or they could be embedded in something like attribute? (eg. is tag attr='tag'/ a

Re: [jdev] Splitting the stream

2006-11-01 Thread Matthias Wimmer
Michal 'vorner' Vaner schrieb: And, if I have these split things and insert them between the stream header I got in the beginning and an corresponding stream end, can I parse it using DOM parser for each separate stanza? But that is something I would not do. It requires you to parse the

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Kevin Smith
Cross-posting to sjig: On 1 Nov 2006, at 16:45, Peter Saint-Andre wrote: Scott Robinson wrote: What is the proper method of performing a ping across a client XMPP connection. That is, from a sever's perspective, if a client mysteriously and unexpectedly drops off the Internet, it won't know

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Tobias Markmann
Isn't that a TCP problem since that can happen to any protocol which is based to TCP?On 11/1/06, Scott Robinson [EMAIL PROTECTED] wrote:What is the proper method of performing a ping across a client XMPP connection. That is, from a sever's perspective, if a clientmysteriously and unexpectedly

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Michal 'vorner' Vaner
On Wed, Nov 01, 2006 at 06:07:39PM +0100, Tobias Markmann wrote: Isn't that a TCP problem since that can happen to any protocol which is based to TCP? Well, it is partly implementation problem, many OSes (as I heard) are able to tell you how much was already delivered and if you remember what

[jdev] Re: Splitting the stream

2006-11-01 Thread Alexander Gnauck
Matthias Wimmer wrote: Michal 'vorner' Vaner schrieb: And, if I have these split things and insert them between the stream header I got in the beginning and an corresponding stream end, can I parse it using DOM parser for each separate stanza? But that is something I would not do. It requires

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Peter Saint-Andre
Justin Karneges wrote: On Tuesday 31 October 2006 4:49 pm, Scott Robinson wrote: What is the proper method of performing a ping across a client XMPP connection. There isn't. There was a JEP/XEP proposal to add Acking and Ping features to the protocol, but it wasn't accepted as a XEP (that

Re: [jdev] Re: Splitting the stream

2006-11-01 Thread Michal 'vorner' Vaner
Hello, On Wed, Nov 01, 2006 at 06:12:15PM +0100, Alexander Gnauck wrote: Matthias Wimmer wrote: Michal 'vorner' Vaner schrieb: And, if I have these split things and insert them between the stream header I got in the beginning and an corresponding stream end, can I parse it using DOM parser

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Justin Karneges
On Wednesday 01 November 2006 9:17 am, Peter Saint-Andre wrote: But the latest discussions about this (a month or two ago?) were that this is most appropriate as an XMPP extension (XEP), so please send me the latest version and we'll get that on the docket for the next XMPP Council meeting.

RE: [jdev] XMPP Ping method?

2006-11-01 Thread Chris Mullins
From the very first day I wrote a Jabber packet, I was looking for a Ping command. I would still like to see one. I usually end up using IQ:Time, or IQ:Version as a ping. Almost everything supports this - clients, servers, bots, etc. I would still love to see IQ:Ping. -- Chris Mullins

RE: [jdev] XMPP Ping method?

2006-11-01 Thread Chris Mullins
That's quite a bit more complicated that I envisioned. I was just thinking IQ:Ping, and leave it there. For all of the use cases I've come across, this would be sufficient. -- Chris Mullins -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin

[jdev] Re: Splitting the stream

2006-11-01 Thread Alexander Gnauck
Michal 'vorner' Vaner wrote: Well, I just think I do not need to _parse_ it if I'm not interested in the information there. I only want to split it to parts and feed that to different program. what is parsing for you? splitting is parsing for me. A SAX or Pull Parser, or a Xml Tokenizer is

[jdev] Re: XMPP Ping method?

2006-11-01 Thread Magnus Henoch
Michal 'vorner' Vaner [EMAIL PROTECTED] writes: Well, it is partly implementation problem, many OSes (as I heard) are able to tell you how much was already delivered and if you remember what part of data was what stanza, you can resend it after reconnection. But that is bit more work, of

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Tomasz Sterna
On 11/1/06, Scott Robinson [EMAIL PROTECTED] wrote: What is the proper method of performing a ping across a client XMPP connection. That is, from a sever's perspective, if a client mysteriously and unexpectedly drops off the Internet, it won't know it until the TCP connection times out. Isn't

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Artur Hefczyc
On Wednesday 01 November 2006 20:08, Tomasz Sterna wrote: On 11/1/06, Scott Robinson [EMAIL PROTECTED] wrote: What is the proper method of performing a ping across a client XMPP connection. That is, from a sever's perspective, if a client mysteriously and unexpectedly drops off the

[jdev] Re: XMPP Ping method?

2006-11-01 Thread Alexander Gnauck
Tomasz Sterna wrote: On 11/1/06, Scott Robinson [EMAIL PROTECTED] wrote: What is the proper method of performing a ping across a client XMPP connection. That is, from a sever's perspective, if a client mysteriously and unexpectedly drops off the Internet, it won't know it until the TCP

Re: [jdev] XMPP Ping method?

2006-11-01 Thread Dave Cridland
On Wed Nov 1 17:07:11 2006, Michal 'vorner' Vaner wrote: On Wed, Nov 01, 2006 at 06:07:39PM +0100, Tobias Markmann wrote: Isn't that a TCP problem since that can happen to any protocol which is based to TCP? Well, it is partly implementation problem, many OSes (as I heard) are able to

Re: [jdev] Re: Splitting the stream

2006-11-01 Thread Matthias Wimmer
Michal 'vorner' Vaner schrieb: Well, I just think I do not need to _parse_ it if I'm not interested in the information there. I only want to split it to parts and feed that to different program. As Alexander already said: I think what you plan to do (you wrote in a private mail, that you plan

Re: [jdev] Re: XMPP Ping method?

2006-11-01 Thread Tomasz Sterna
On 11/1/06, Artur Hefczyc [EMAIL PROTECTED] wrote: If 2 machines are connected over TCP/IP connection and there is one or more firewalls in between, try to power-off one of the machines. Another side will not notice connection drop. Why not? TCP handles disappearing end well. Default TCP/IP

[jdev] Re: XMPP Ping method?

2006-11-01 Thread Alexander Gnauck
Tomasz Sterna wrote: for some devices it's not. If you work with wireless devices (WLAN, GSM, UMTS) you will see lot's of strange behavior. Isn't that broken TCP implementation then? sometimes it is, but sometimes it's by design. I think we have to address this issues and can't say the tcp

Re: [jdev] Re: Splitting the stream

2006-11-01 Thread Norman Rasmussen
On 11/1/06, Matthias Wimmer [EMAIL PROTECTED] wrote: As Alexander already said: I think what you plan to do (you wrote in a private mail, that you plan to use regular expressions) is parsing as well. Yegh, try and steer clear of RegEx to parse XML. Use a standard SAX parser should be more