Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ProcessPingFrame()

void System.Net.Http.Http2Connection.ProcessPingFrame ( FrameHeader frameHeader)
inlineprivate

Definition at line 2364 of file Http2Connection.cs.

2365 {
2366 if (frameHeader.StreamId != 0)
2367 {
2369 }
2370 if (frameHeader.PayloadLength != 8)
2371 {
2373 }
2374 ReadOnlySpan<byte> source = _incomingBuffer.ActiveSpan.Slice(0, 8);
2376 if (System.Net.NetEventSource.Log.IsEnabled())
2377 {
2378 Trace($"Received PING frame, content:{num} ack: {frameHeader.AckFlag}", "ProcessPingFrame");
2379 }
2380 if (frameHeader.AckFlag)
2381 {
2382 ProcessPingAck(num);
2383 }
2384 else
2385 {
2387 }
2388 _incomingBuffer.Discard(frameHeader.PayloadLength);
2389 }
static long ReadInt64BigEndian(ReadOnlySpan< byte > source)
System.Net.ArrayBuffer _incomingBuffer
override void Trace(string message, [CallerMemberName] string memberName=null)
Task SendPingAsync(long pingContent, bool isAck=false)
static readonly System.Net.NetEventSource Log

References System.Net.Http.Http2Connection._incomingBuffer, System.Net.NetEventSource.Log, System.Net.Http.HttpConnectionBase.LogExceptions(), System.Net.Http.Http2Connection.ProcessPingAck(), System.Buffers.Binary.BinaryPrimitives.ReadInt64BigEndian(), System.Net.Http.Http2Connection.SendPingAsync(), System.source, System.Net.Http.Http2Connection.ThrowProtocolError(), and System.Net.Http.Http2Connection.Trace().

Referenced by System.Net.Http.Http2Connection.ProcessIncomingFramesAsync().