methodTsmCustomTLSInternalServer.TLSAccept
function TLSAccept(UserData: Pointer; Src, Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
Server-side: drives (or continues) the server handshake for the UserData- keyed session, consuming a ClientHello (or later handshake flight) from Src and writing the server's reply to Response. If no session exists yet for UserData, one is created automatically (see TLSAddServerSession). This is the usual entry point for a plain socket-based TLS server loop.
function TLSAccept(UserData: Pointer; Src, EarlyData, Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
TLS 1.3 (NEW, task 11): accept with a 0-RTT EarlyData destination stream. Server-side only: same as the two-stream TLSAccept overload, but any 0-RTT early application data the client sent ahead of the handshake finishing is written to EarlyData instead of being mixed into the post-handshake data path; omit EarlyData (use the other overload) to make the server refuse 0-RTT outright. Policy is controlled via Options (EarlyData / MaxEarlyDataSize) and OnTLSCheckEarlyDataReplay.