-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fyi, Meeh is working on "i2ptunnel" #32
Comments
I would start from simple HTTP-proxy. |
Yea, I've used the example from HTTPServer.cpp on how to query. I don't have any knowledge with io_service so that's something I try to read me up on now. Read some of the code in the link above too, gave me some ideas. Async would be sweet because then I can do something like this:
|
The bottom line of this design is you would have to allocate separate local port per I2P destination. Remember there are not so many local ports available, 2 bytes only. |
Ah, I see what you mean. Back to design board, need to do it in another way. Thanks. This desgin would only be useful for IRC,smtp,pop with a static destination, and not HTTP. |
That's why I'm saying HTTP proxy is simplest because it contains destination address in the headers. |
Ok, I'm going for that one first, then extend or implement for more later. |
Starting to get results. Just wondering, is it an good idea to "cache" leasesets or streams in the HTTP proxy? Thinking of senarioes where you load different files from the same host, seems waste of resource to lookup leaseset and create stream for each request. What do you think? |
As you might see I have implemented LeaseSet subscription mechanism meaning someone who is interested in it subscribes and LeaseSet gets updated automatically. Why do you think looking up of LeaseSet or creating stream is something resource consuming? |
Hi, I sent you an mail to the mail address in your git checkin signature. Was hoping to have a little chat :) - Also, just close this issue when you read this. |
Yes, I see you e-mail. |
Just wanted to give you a heads up that I've started on the "client" part. In other words classes to link i2p::stream::Stream to a configured tcp port. I will commit when I got something, but it might take a while since I need to learn the ASIO library better. Still learning C++ in depth.
My initial design thoughts is close to this, if you change the server with the Stream object. http://www.partow.net/programming/tcpproxy/index.html
The text was updated successfully, but these errors were encountered: