public TCPPacket(byte[] packet,int index, PacketINTERNET.PACKET_INTERNET pInternet, PacketTCP.PACKET_TCP pTcp, DateTime Time) { Packet = packet; Index = index; PTcp = pTcp; PInternet = pInternet; TimeStamp = Time; }
static void Main(string[] args) { PacketTCP test = new PacketTCP(); long[] temp = new long[2000]; for (int i = 0; i < temp.Length; i++) { temp[i] = 100; } var packets = test.CreatePackets <long[]>(temp); Console.WriteLine("End Test"); Console.WriteLine(packets.Count); // tests out properly as 12 now, redid calc12? check similar header function }