|
Internet Direct (Indy)
|
Send a Gopher menu item to the client.
procedure SendDirectoryEntry(
AContext: TIdContext;
ItemType: Char;
UserFriendlyName: String;
RealResourceName: String;
HostServer: String;
HostPort: Integer
);|
Parameters |
Description |
|
AContext |
The client connection to receive the Gopher item. |
|
ItemType |
The Gopher item type constant. |
|
UserFriendlyName |
Name to display on client menus. |
|
RealResourceName |
Item selector or a hint for logging into a Telnet or TN3270 service. |
|
HostServer |
Gopher Server hosting the item. |
|
HostPort |
Port number for the host. |
SendDirectoryEntry is a procedure used to send a Gopher menu item to the client connection specified in AThread.
ItemType contains a constant that identifies the item type, as defined in GopherConsts.pas, and normally contains of the following values:
|
Value |
Meaning |
|
Item is a file | |
|
Item is a directory | |
|
Item is a CSO phone-book server | |
|
Error | |
|
Item is a BinHexed Macintosh file | |
|
Item is DOS binary archive of some sort. Client must read until the TCP connection closes. Beware. | |
|
Item is a UNIX uuencoded file | |
|
Item is an Index-Search server | |
|
Item points to a text-based telnet session | |
|
Item is a binary file. Client must read until the TCP connection closes. Beware. | |
|
Item is a redundant server | |
|
Item points to a text-based tn3270 session | |
|
Item is a GIF format graphics file | |
|
Item is some kind of image file Client decides how to display | |
|
Website | |
|
Mime encoded file | |
|
Not a file, just information |
|
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |