static void Main(string[] args) { Client c = new Client(); string str = Console.ReadLine(); c.connect(str); string mess, to; for (; ;) { mess = Console.ReadLine(); to = Console.ReadLine(); c.SendMessage(mess, to); } }