Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

Winsock Gateway

 

Control:          QUIT

 

Syntax:           result-string = CONTROL(lun,"QUIT")

 

Description:    Terminate connection and reset gateway.

 

Remarks:       The QUIT control performs an abortive close of the active connection and initializes the Winsock gateway.  The lun may then be used in connecting to a new server process. Attempts to read or write on the lun following a close result in an EXCP 35. 

 

The operating parameters of the gateway are restored to their defaults:

 

TIMEOUT       60 seconds

WEOL             Disabled

 

Return values:

 

                        If no error occurs, QUIT returns +OK.  Otherwise, it returns –ERR followed by detailed information on the nature of the error. These values are returned in the result-string.

 

Exceptions:     EXCP 45   A syntax error was detected parsing the QUIT command string.

 

Example:        OPEN (1) "G03"

            Result$ = CONTROL(1,"CONNECT hostname.com 12345")

            IF SUB(Result$,1,1) NE “+” GOTO ErrorHandler

            .

            .

            .

            ErrorHandler:

            Result$ = CONTROL(1,"QUIT")