W3C libwww Using

The Transport Class

The Transport Class defines a transport as used by the Channel class to communicate with the network, the local file system etc. New transport objects may be registered at any time. This allows the application to easily hook in its own transport layers. The purpose of the HTTransport object is to contain transport dependent methods for opening and closing a connection to the transport and also to get an input stream and an output stream for reading and writing to the transport respectively.

Libwww does not define any default transport objects - they are all considered part of the application. Libwww comes with a default set of transports which can be initiated using the function HTTransportInit() in HTInit module

All transport interfaces are registered dynamically in libwww. This means that libwww is independent of the transport being used (for example TCP) and you can therefore use libwww in any context you like. You have to specify a set of parameters in order for libwww to be able to use it.

DocumentationConstructors, Destructors and Methods


Henrik Frystyk Nielsen, libwww@w3.org,
@(#) $Id: Transport.html,v 1.3 1996/12/09 03:24:40 jigsaw Exp $