:Select() - Select an item to return information about
Class
Syntax
:Select( nItemType, cResource ) --> lSuccess
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
lSuccess
True means the Remote Server has accepted the Query and results should be :Read() from the Data Stream.
If False, the Server could not process the request, additional information can be found in :nErr and :cErr.
Description
The :Select() Method sends the specified selector string (cResource) to the remote server.
:Select() is a Query Request and needs to be followed with a Data clooection Method :Read() to retrieve the requested information.
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 |
See Also
:Read(), :GetSelect(), :Connect(), :ConnectSelect()