Gopher servers contain Gopher objects and each object has an associated Gopher type. The Gopher type signals the client what to do when that object is selected from the menu. Table 1.11 explains the Gopher types.
Table 1.11 Gopher Types and Client Behavior
Type | Description | Client action | ||||||
0 | Text file, typically an ASCII document | Usually displayed on the screen. | ||||||
1 | Directory listing | Expect another Gopher menu. | ||||||
2 | CSO phone book server | Expect to be queried for a person's name. | ||||||
3 | Error | |||||||
4 | Macintosh® BinHex file | Expect the file to be transferred. | ||||||
5 | MS-DOS .zip or other archive file | Expect the file to be transferred. | ||||||
6 | UNIX UUENCODE file | Expect the file to be transferred. | ||||||
7 | Search item | Expect to be queried for a relevant search string. | ||||||
8 | Telnet session | Expect the Telnet program installed on your computer to start. | ||||||
9 | Binary file | Expect the file to be transferred. | ||||||
T | 3270 session | Expect the tn3270 program installed on your computer to start. | ||||||
S | Sound file | Expect the file to be transferred and then played by a sound application on your computer. | ||||||
g | Graphics file | Expect the file to be transferred and then displayed by a graphics application on your computer. | ||||||
M | MIME file | Expect the file to be transferred and then displayed by an application on your computer. | ||||||
h | HTML file | Expect the file to be transferred and then displayed by an application on your computer. | ||||||
I | Image file | Expect the file to be transferred and then displayed by an application on your computer. | ||||||
i | In-line text type | Used to suppress item numbers in text-only clients. |