- From: Tarik Miller <tmiller@penguinpowered.com>
- Date: Thu, 15 Feb 2001 15:19:36 -0800 (PST)
- To: www-lib@w3.org
I am new to libwww and I have a need for a senario which involves several open sockets to a single host and the ability to direct requests to a specific socket. In other words, I have a set of related HTTP requests and this chain of requests must all go over the same socket. I can do this fine with what I know of libwww but I also want to set up a bunch of these chains to the same host and I can't see a good way to do that. From what I can tell, when processing of a request starts an HTNet object is attached to the HTRequest. Then an HTHost is attached to the net object. The HTHost is pulled from a hash table keyed on the host address and created if one doesn't exist. So you only ever have one HTHost object per host address. In addition each HTHost only has one channel associated with it. It seems to me that I need a way to have multiple HTHosts. I could do this my making my own modified version of the HTTP protocol module which comes with the library. I would change it so that I could tack on some unique identifier to the host address string and it would use the whole string for hash lookup purposes but chop off the unique identifier when doing the name resolving. Thing is, that's a small change and I'd be just copying all of the other code from the HTTP module to make my module and that seems like overkill to me. Is there a better way to handle this? thanx -T
Received on Thursday, 15 February 2001 18:18:56 UTC