[JDEV] Re: server2client

belg4mit at MIT.EDU belg4mit at MIT.EDU
Mon Sep 20 11:11:32 CDT 1999


In reply to your message from the not too distant future: next Monday AD
Reply-to: belg4mit at mit.edu
Return-receipt-to: belg4mit at mit.edu
Organization: a) Discordia b) none c) what's that?
Content-Typo: gibberish, charset=ascii-art
Date: Mon, 20 Sep 1999 12:11:31 EDT
From: Jerrad Pierce <belg4mit>

>Then the client goofed, the messages come in as <message></message>. I'm
>working on the mac client right now, and you watch for the ending
>message tag. At that point you know you've gotten one whole message. I
>read the data and send it to the XML parser (expat). When expat sees an
>end tag, an end tag handler is called. AFAIK there isn't really a _need_
>for a carriage return EOM marker.
I think you did not understand what I said, for this is exactly my point.

given an instaneous stream of:
<message>
	<!-- crap -->
</message>
<message>
	<!-- other crap -->
</message>

The client has to know XML itself (or it's supporting lib) to know that that
is two messages?

<!-- keep in the mind iscoming from a perl view -->
This would mean you'd have to read a single byte at a time to prevent getting
extraneous data. (you could read more and do some funky stuff to save it of
course) This seems to be a very uncool manner of doing things. Why wasn't a
length attrib added to the message tag? the length being from the > at then
end of the <message tag> to the > of the </message> tag. Yes I realize this
mean's the whole message must be known before it can be streamed, but it seems
a small price to play for sanity.

Or is the serve somehow smart enough to know to only feed the client one
message a time? In which case this whole thing is moot.

--
Please take the time to answer the simple survey at:
                                        http://pthbb.org/ideas/survey/breakup/
                                                  *             __    *      .
           \     |     /           .        . .           .  . ((_
               _____                       .                         .     .
          --  /     \  --           .        .      .   +    .   .     _/\
      oooooooooo.   |               * .       .   .           *       / ;M\_ .
   .oooooooooooo.oo.                  .  .    .       . /\    .      /  :IMM\
  ..oooooooooooo..oo.   Jerrad Pierce              /\  /  \         /   ;IIWMM
  ..oooooooooo.......   209 North Street     +    /  \ /  \  .     /   ;IIIIWM
  ...ooooooooo.......   Randolph, MA 02368        /  \     \  ___/   :;IIIIIWM
  ....ooo....o.......                            /    \    \ /  ::     ;;IIIMI
   .....ooo.........    http://www.pthbb.org     /    \     \   :     :::;IIIM
     ..ooooooo....      __________________________ ||   ||       ::.....::::::
MOTD on Pungenday, the 44th of Bureaucracy, in the YOLD 3165:

Troglodytism does not necessarily imply a low cultural level.




More information about the JDev mailing list