Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmStreamSecII.FindTLSSession

function FindTLSSession(const SessionID: TSessionID; var Client: TCustomTLS_ContentLayer; Extract: Boolean = False): Integer; overload;
Look up the content-layer object for an existing session by its TLS SessionID. Apps use this to reach a live session's state; pass Extract=True to detach the session from this component's management (the caller then owns it). Returns the session's index in the UserData list, or -1 if not found.
function FindTLSSession(UserData: Pointer; var Client: TCustomTLS_ContentLayer; Extract: Boolean = False): Integer; overload;
Same lookup keyed on the application-supplied UserData pointer (typically the owning socket/connection object). This is the key the TLS*(UserData,...) methods use to route bytes to the right session.