Gopher Protocol


CLASS aprGopher

 

Description
The aprGopher Class enables the application to search a Gopher server for a specific document or resource and return that information to the client application. The Gopher protocol pre-dates the Hypertext Transfer Protocol (HTTP) that is used with the World Wide Web and is similar in a number of ways. Resources returned by the Gopher server may be text files, as well as binary executables, image files and encoded file archives. 

 

 

Variables

 

:cErr

Holds a description for the Last error code

 

:Debug

Enable/Disable extended Debug notifications.

 

:DebugTrace

Enable/Disable Callstack List to be included in Error Messages (:Debug)

 

:LastSearch

Last Resource Searched For

 

:nErr

Holds the last error code

 

:Session

Holds the Initial Session ID value (used as the Default Session ID)

 

 

 

Methods

 

:New()

Creates a new instance of the aprGopher Class

 

:Destroy()

Releases the system resources assigned by the :New() Method.

 

 

 

 

:Cancel()

Cancel the current blocking operation

 

:Connect()

Connect to the specified server

 

:ConnectSelect()

Connect to Host and Select an item to return information about

 

:Disconnect()

Disconnect from the current server

 

:GetSocket()

Return the current session socket

 

:IsBlocking()

Determine if the client is blocked, waiting for information

 

:Read()

Read data returned by the remote server

 

:GetSelect()

Automatically Select the Remote Resource and Reads the results from the Server.

 

:Select()

Selects an item to return information about

 

:SetLastError()

Set the last error code

 

:Timeout()

Get/Set the number of seconds until an operation times out

 

:Trace()

Enable/Disable logging of socket-level calls to the trace log