public void Main() { TCPclients client = new TCPclients(); var connect = Task.Run(() => Connect()); connect.Wait(); }
static void Main(string[] args) { TCPclients duh = new TCPclients(); duh.Main(); Console.ReadKey(); }