com.TCPRequest.setKeepConnection

Defines if the TCP connection is kept open after sending a request.

Syntax

setKeepConnection(
   keep INTEGER )
  1. keep indicates if the TCP connection must be kept open.

Usage

This method can be used to force the TCP socket to remain open after a send operation, in order to perform subsequent do*Request() calls, without closing the connection (in write mode).

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).