Re: add new protocol

Jiang Tao writes:

> I want to add new protocols to my application, can I make use of
> the socket read and write of w3c lib, if yes, how can I do that?

The Library is explicitly designed to make this very easy. You simply register 
a new protocol module in the core by binding a specific access scheme of a URL 
to the load module. The only requirement is that your load module has to be of 
type HTEventCallBack() so that in case you register it as being capable of 
using non-blocking sockets then the event loop can find it again.

It's all explained in detail in the User's Guide, either at our server:


or in your local copy of the distribution file:



Henrik Frystyk Nielsen, <frystyk@w3.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA