24 lines
613 B
C#
24 lines
613 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace skyscraper8.Atsc.A331
|
|
{
|
|
internal class Atsc3FilenameTable
|
|
{
|
|
private List<Tuple<IPEndPoint, ulong, string>> staticFilenames;
|
|
public void LearnFilename(IPEndPoint endpoint, Atsc3Fdt fdt)
|
|
{
|
|
foreach (Atsc3FdtFile file in fdt.Files)
|
|
{
|
|
if (staticFilenames == null)
|
|
staticFilenames = new List<Tuple<IPEndPoint, ulong, string>>();
|
|
staticFilenames.Add(new Tuple<IPEndPoint, ulong, string>(endpoint, file.TOI, file.ContentLocation));
|
|
}
|
|
}
|
|
}
|
|
}
|