Gophermap

A gophermap file is a means of defining menus for gopher content. The gophermap provides a virtual view of the content available allowing one to rename files, hide them, or even link to content on other servers. The gophermap is supported by both Bucktooth and PyGopherd. These servers must perform some processing on the gophermap file before sending the menu back to the client. For example, Bucktooth will send any RFC 1436 compliant line to the client. Since it would be a major drag to always have to type things out in full, Bucktooth allows the following shortcuts:

gophermap File Format

The gophermap file consists of zero or more lines containing lines that can be one of the following types.

Comment lines contain plaintext without any tabs. These are sent unchanged to the client and can be used for descriptions or for welcome banners.

Selector lines are tab-delimited records that specify all the information a gopher client needs to retrieve the particular resource including the itemtype, display string, server, and port. In the example below <TAB> signifies the tab character (CTRL-I, 0x09).

1gopher.floodgap.com home<TAB>/home<TAB>gopher.floodgap.com<TAB>70

The above selector line generates a link to "/home" selector on gopher.floodgap.com, port 70 with an itemtype of 1 and a display string of "gopher.floodgap.com home". (The selector can be left empty. A null selector is the same as the root of the mountpoint.)

Valid itemtypes include (defined in RFC 1436)

hLibrary of Congress<TAB>URL:http://www.loc.gov

This article is issued from Wikipedia - version of the 12/4/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.