private void ProcessShortHeaderPacket(Packet packet) { ShortHeaderPacket shp = (ShortHeaderPacket)packet; QuicConnection connection = ConnectionPool.Find(shp.DestinationConnectionId); if (connection == null) { return; // TODO: Figure out if the packet should be discarded in that case? } connection.ProcessFrames(shp.GetFrames()); }
/// <summary> /// Processes short header packet, by distributing the frames towards connections. /// </summary> /// <param name="packet"></param> private void ProcessShortHeaderPacket(Packet packet) { ShortHeaderPacket shp = (ShortHeaderPacket)packet; QuicConnection connection = ConnectionPool.Find(shp.DestinationConnectionId); // No suitable connection found. Discard the packet. if (connection == null) { return; } connection.ProcessFrames(shp.GetFrames()); }