Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSClient.Receive

function Receive(aTimeout: Cardinal = 0): TBytes;
Returns whatever plaintext is available, waiting up to aTimeout (or IOTimeout when aTimeout is 0). An empty result means the timeout expired or the peer closed; test PeerClosed. Raises on a cleartext connection while RequireTLS is in force and no upgrade dialogue is open.