genAuthResponseMethod

Type: String

The genAuthResponseMethod property of the TcpIpConnection class contains the name of the method in the authentication library used to generate the response from the authentication challenge.

If this property contains the name of a generate authentication response method, the specified method is executed after a successful open or openAsynch operation.

The following example of the genAuthResponseMethod property sets the authentication response method for the connection.

buttonOpen_click(btn: Button input) updating;
begin
    self.tcp.genAuthResponseMethod := "okGenAuthResponse";
    // Attempts to connect to the current port.  If an application is
    // listening on the port, a connection is made and the status bar
    // is set to read 'connected'.
    self.tcp.open;
    if self.tcp.state = Connection.Connected then
        statusLine1.caption := "Connected";
        textBox2.text := self.tcp.localIpAddress;
        textBox3.text := self.tcp.remoteIpAddress;
        textBox4.text := self.tcp.remoteName;
    endif;
end;