Esempio n. 1
0
        static void Main(string[] args)
        {
            SimpleClient client = new SimpleClient();

            client.Connect("127.0.0.1", 4444);
            client.Run();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            SimpleClient sc = new SimpleClient();

            sc.Connect("127.0.0.1", 4444);
            sc.Run();
        }
Esempio n. 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SimpleClient simpleClient = new SimpleClient();

            if (simpleClient.Connect("127.0.0.1", 4444))
            {
                simpleClient.Run();
            }
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            SimpleClient client = new SimpleClient();

            if (client.Connect("127.0.0.1", 4444))
            {
                client.Run();
            }
            else
            {
                Console.WriteLine("Failed to connect");
            }
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            string IP   = "127.0.0.1"; //local IP
            int    port = 4444;

            SimpleClient clientInst = new SimpleClient();

            if (clientInst.Connect(IP, port))
            {
                clientInst.Run();
            }
            else
            {
                Console.WriteLine("Failed to connect to the server");
            }
        }
Esempio n. 6
0
        public static void Main()
        {
            SimpleClient _client = new SimpleClient();

            if (_client.Connect(hostname, port))
            {
                Console.WriteLine("Connected...");

                try
                {
                    _client.Run();
                }
                catch (NotConnectedException e)
                {
                    Console.WriteLine("Client not Connected");
                }
            }
            else
            {
                Console.WriteLine("Failed to connect to: " + hostname + ":" + port);
            }
            Console.Read();
        }
Esempio n. 7
0
        public static void Main()
        {
            SimpleClient _client = new SimpleClient();

            if (_client.Connect(hostname, port))
            {
                Console.WriteLine("Connected...");

                try
                {
                    _client.Run();
                }
                catch (NotConnectedException e)
                {
                    Console.WriteLine("Client not Connected");
                }
            }
            else
            {
                Console.WriteLine("Failed to connect to: " + hostname + ":" + port);
            }
            Console.Read();
        }