Esempio n. 1
0
    void Awake()
    {
        DontDestroyOnLoad(manager);

        Http3Sharp.SetDebugLogCallback(DebugLog);
        Http3Sharp.Initialize();
    }
 protected void CreateHttp3(ulong maxMulitipleNum = 512)
 {
     if (null == Http3)
     {
         Http3 = new Http3Sharp(HostName, Port, new Http3Sharp.ConnectionOptions
         {
             VerifyPeer           = VerifyPeer,
             QlogPath             = QlogPath,
             MaxConcurrentStreams = maxMulitipleNum,
             Quic = new Http3Sharp.QuicOptions
             {
                 MaxIdelTimeout = 0,     // タイムアウト実験したい場合は 0 以上の値を指定してください.
             }
         });
     }
     Clear();
 }
Esempio n. 3
0
 void OnDestroy()
 {
     Http3Sharp.Uninitialize();
 }