decryptMethod

Type: String

The decryptMethod property of the TcpIpConnection class contains the name of the decryption method in the encryption and decryption library that is executed after a successful readBinary or readBinaryAsynch operation.

The following example sets the decryption method for the connection and checks to make sure TCP is in connected state (2). If it is, and binary data is received through the connection, it displays the data in the text box. The parameter of 50 specifies that the data must be no more than 50 bytes long.

buttonReceive_click(btn: Button input) updating;
begin
    self.tcp.decryptMethod := "okDecrypt";
    if self.tcp.state = Connection.Connected then
        textBox1.text := self.tcp.readBinary(50).String;
    endif;
end;