:GetSelect() - Select an item to return information about and return results


Class

     :aprGopher()

 

Syntax

     :GetSelect( nItemType, cResource ) --> cInfo

 

Parameters

 

nItemType

The selector item type. See table below.

 

cResource

Selector string which identifies the resource to be returned by the server.

Examples include File Names, Directories, etc.

 

Return

     cInfo, Results of the query.

     If successful, cInfo contains the response from the Remote Server.

     If the :Select() operation failed, cInfo is NIL, additional information can be found in :nErr and :cErr.

 

Description

The :GetSelect() Method sends the specified selector string (cResource) to the remote server. If the item is a directory or index, a list of additional items will be returned, otherwise the item itself will be returned to the client.

 

The following selector item types are recognized:

 

Value

Description

 

GOPHER_ITEM_FILE

Item is a text file

 

GOPHER_ITEM_DIRECTORY

Item is a directory of resources

 

GOPHER_ITEM_PHONEBOOK

Item is a CSO phonebook server

 

GOPHER_ITEM_ERROR

Item is unavailable, an error has occurred

 

GOPHER_ITEM_BINHEX

Item is a binhex encoded file

 

GOPHER_ITEM_DOSFILE

Item is an MS-DOS (binary) file

 

GOPHER_ITEM_UUENCODE

Item is a uuencoded file

 

GOPHER_ITEM_INDEX

Item is a gopher index search server

 

GOPHER_ITEM_TELNET

Item is a Telnet session

 

GOPHER_ITEM_BINARY

Item is a binary file

 

GOPHER_ITEM_GIF

Item is an image file (GIF format)

 

GOPHER_ITEM_IMAGE

Item is an image file (non-GIF format)

 

GOPHER_ITEM_TN3270

Item is a 3270 Telnet session

 

GOPHER_ITEM_UNKNOWN

Item type is unknown