Quote:
Originally Posted by Ret
I think you don't really need my code but if you want it you can get it from here
|
Are you kidding; I think I have found the Holy Grail with that java code.
Very interesting; perhaps I can merge some segments into Linreb. But since I didn't write Linreb (I only found it), my progress will be all uphill. That's OK though, I like a challenge.
BTW, quick (stupid) question, did you get it to work on the EBW1150 as you remembered it?
Quote:
That program runs a webserver listening on port 80. When it is run, it loads the HOSTS file in memory and adds some entries. It listens for requests and serves the files (sample.html should be named index.html). When you close it, it puts the HOSTS files back to original state.
|
I tried this already with the EBW1150 (as you previously suggested earlier), but none of the HTTP GETs were processed properly. They were all internet requests (without the proxy 'Http://' prefix). I need to make some adjustments to Linreb to properly interface and incorporate your idea. That's where your java code comes in handy. At least now I'll know what your idea is, IN CODE, so that I can try to duplicate/strong-arm it to work for Linreb.
Quote:
That's not the approach used by Linreb since it doesn't run on port 80 (which needs some privileges).
What you really need is to add some code in Linreb to let it handle requests for domains other than ebooksystem.net and forward the responses back to the reader. In other words, always act as a proxy except when trying to connect to ETI servers.
|
I will if I find the right code. So far, I've found some web references (in perl) and may try some ideas from there. Here's to hoping it gets me somewhere.
Quote:
If you don't want to add code to Linreb (maybe for maintenance reasons) you should run a separate proxy that directs all traffic to ebooksystem.net to Linreb's port. (I tried to do that but I could find a way to do a port redirection.)
|
port redirection?; like port forwarding on a router?
Quote:
One last thing: I think It'll be a lot of work parsing all the Uploaded book forum section and presenting them to the reader.
|
If you take a look at the first link on the second page of the content directory in Linreb v0.2, you will see (all) the Mobipocket ebooks available for download from Mobileread.com along with their descriptions. That info was extracted from the Mobipocket Download Guide available here daily. You are correct that that would be a lot for me to parse for .imp ebooks, but not for the moderators or main programmers here. Once the proof-of-concept is acheived, then I'm sure I could get their co-operation preparing the 'IMP Download Guide' the way Linreb needs it. Now, will that listing exhaust the limited memory on-board the EBW1150? Perhaps, but then we will have to work with small lists/subsets; an extra pre-processing step would be required.
Time will tell how successful this becomes but for me it is enough to be a catalyst to make this happen. You have been a great part so far as was the original author of Linreb. Besides I like tweaking/hacking (and maintaining) programs written by others; that's what I do!
In the spirit of sharing, I do want to see this come to fruition.
Anybody else want to help out? Please? Ok, pretty please!
Speak now or forever (you know the drill) .....