Designing network protocols

From HashVB
Revision as of 17:24, 13 November 2005 by Dee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
<@QueenDee> ok, so you can NOT rely on the data being recieved in the same chunks as they are snt
<@QueenDee> they will be in the same order, yes, but be broken into chunks as the server, and any devices along the route see
            fit
< lsdigital> well kinda
<@QueenDee> So, you need to receive ALL data into one buffer
< lsdigital> yeh
< lsdigital> like
<@QueenDee> there is no kinda about it
<@QueenDee> thats how it is
< lsdigital> i hwell
< lsdigital> there is only one server
< lsdigital> but ya
< lsdigital> all of it comes at once
< lsdigital> and
< lsdigital> vb isnt parsing it all
< lsdigital> ill get like
< lsdigital> the first 5 lines
<@QueenDee> shut up and listen
<@QueenDee> that is EXACTLY what I have just explianed
< lsdigital> k
< Deathmaster> LOL dee is already nervous ;))
<@QueenDee> the chunks the server sends will NOT be the chunks you receive
< logicerror> lol
<@QueenDee> there needs to be some delimiter character (new line normally) to say process this
<@QueenDee> so...
<@QueenDee> you read all your data into a single buffer, then parse that
<@QueenDee> read data in and append to buffer
<@QueenDee> check for crlf
<@QueenDee> if crlf exists, read up to it, and remove form buffer
<@QueenDee> repeat check for crlf