William Bardwell wrote:
Darin Fisher wrote:

William Bardwell wrote:

I am trying to use the Necko layer to do HTTP accesses, but
for security reasons, the application needs control over
what IP address is used for each access (it wants to make
sure that a series of accesses to the same hostname all
use the same IP addresses).



[...nsISocketProvider that cheats the addresses...]


Thanks.  Hum, ok, I have gotten making a nsIURL(and nsIURI)
implementation (not just nsIURI) that substitutes in a hostname
of my choice to get me closer to what I want, and the
nsHttpChannel seems to be ok with that, but if this breaks
down I will try out your technique which sounds harder, but
more robust...

William
[EMAIL PROTECTED]




i expect that you will run into trouble trying to hijack nsIURI/nsIURL like this. there are in particular many parts of the code that create a nsIURI, get the spec, and expect to get back what they originally used to create the nsIURI. this applies to various hash tables that use URL strings as keys. though if you are content to accept some bustage / malfunction, then this may be a reasonable solution. i can't really tell you what kind of problems you will encounter, but i'd be very suprised if you didn't hit some major hitches.

cheers,
darin

_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to