回调:OnSessionCallback
🌐 Callback: OnSessionCallback
thisquic.QuicEndpointsessionquic.QuicSession
当远程端启动新的服务器会话时会调用的回调函数。它会在处理完对端的 TLS ClientHello 后调用,因此回调运行时可以立即使用协商好的 TLS 参数。在此之前握手被拒绝的会话永远不会被显示出来。
🌐 The callback function that is invoked when a new server session is initiated by
a remote peer. It is called once the peer's TLS ClientHello has been
processed, so the negotiated TLS parameters are immediately available when
the callback runs. Sessions whose handshake is rejected before this point are
never surfaced.