Re: [LHA-misc] Line parsing routine
Status: Beta
Brought to you by:
ncherry
From: Paul F. <pg...@fo...> - 2000-12-01 13:40:11
|
> > Without the size of the file we then need to change the way we download > the file to the Ocelot (which might not be a bad thing). Here is an > example: > > set addr=Ocelot:0.0.0 value=5 value=^@^M^J^Z^D i feel like i'm starting to contribute to something i don't know enough about, since i confess i haven't been following development closely. but if the protocol has been chosen as an ascii protocol for ease of debugging (which is a big advantage of the smtp/ftp style of handshake) then i really think you shouldn't be sending binary data as binary. there are lots of good encoding schemes to choose from. remember -- you're going to want to test this from telnet session. and what you'll have in front of you is a paper document from a device mfgr that gives hex codes. very convenient to be able to type 'value=\00\0d\0a\5a\04". i see your point about the count, though. i actually think your "continue"/"end" suggestion is a good one. even if not implemented immediately, it would be a good placeholder in the protocol spec. > set addr=<> continue=<><CR><LF> > set addr=<> continue=<><CR><LF> > set addr=<> continue=<><CR><LF> > set addr=<> continue=<><CR><LF> > set addr=<> end=<><CR><LF> > paul =--------------------- paul fox, pg...@fo... (arlington, ma, where it's 30.4 degrees) |