[JDEV] server2client
Chris
behmc at alleg.edu
Mon Sep 20 10:57:02 CDT 1999
On Monday, September 20, 1999 at 11:51 AM, belg4mit at MIT.EDU wrote:
> 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 11:51:20 EDT From:
> Jerrad Pierce <belg4mit>
>
> then how does the client distinguish between messages? (eg; there are
> several queued up) are we forcing the client to parse the xml as it
> reads so it knows when it's reached the end of the message? what if it
> over reads?
>
> --
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.
Course I'm also still just figuring out the whole XML thing anyway so
*shrug*. Since we are using TCP I think we can be sure of the data
getting to us and being in the right order (ie no interleaved messages).
And anyone who knows differently please speak up 'cause I can only work
with what I know :)
Chris
--
Chris
ICQ#4957571
--
More information about the JDev
mailing list