[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A working use of NonBlocking Reads



I have modified mnemonic to use the NetworkManager::Run() loop for
reading data off a socket.  This is still very rough but it works on my
machine.  Since Andrew said he didn't have the time so I gave it a try. 
You can get it at
ftp://www.univprep.pvt.k12.wa.us/pub/mnemonic-modified.tar.gz

One of the main reasons that i am putting it up is for the people
working on the parser (who are you?).  This is an example of how to
write a parser that receives messages containing data, instead of
calling ReadBlock.

I couldn't grok the current HTML parser so I wrote my own, very simple,
text parser for testing purposes.  Curently the code is very ugly and on
a source tree that is several days old.  I am going to move it to a more
recent source tree and clean it up a bit, this is just a preview
release.  

The main thinks I modified:
I had to remove the current HTML parser from the build tree because it
isn't compatable with my changes. I also commented out the addition of
the sample.html file.  It hung for some unknown reason. Oh, as a side
comment the browser will hang for about 10 seconds because i have to
sleep in the main thread so it doesn't try to display before any tags
are created.

Where do you get doc++?  I assume that what I should be using for
documentation.

Any comments are welcome

Garrett Smith
gsmith@univprep.pvt.k12.wa.us