public ProxyProcessor(string serverHost, int serverPort, int listeningPort, ProxyType pType, int[] packetFilter) { PacketProcessing.CrashOnException = false; ServerHost = serverHost; ServerPort = serverPort; if (packetFilter != null) { filteredPackets = new List<int>(packetFilter); } else { filteredPackets = new List<int>(); } proxyType = pType; clientProcessor = new PacketProcessing(); clientProcessor.SetPort(listeningPort); Subscribe(clientProcessor); clientProcessor.StartClientListener(); }