Exemplo n.º 1
0
        static void TestSslMessageClient()
        {
            ClientSettings       _ClientSettings = LoadAppConfig();
            TcpMessageClientTest client          = new TcpMessageClientTest(_ClientSettings);

            client.Start();
        }
Exemplo n.º 2
0
        static void TestTcpMessageClient()
        {
            ClientSettings _ClientSettings = LoadAppConfig();

            //ConfigurationManager config = new ConfigurationManager()
            if (ConfigurationManager.AppSettings["TargetHost"] != null)
            {
                _ClientSettings.Host = ConfigurationManager.AppSettings["TargetHost"];
            }
            _ClientSettings.Port           = 1234;
            _ClientSettings.UseSSL         = false;
            _ClientSettings.ConnectTimeout = 10 * 1000;
            TcpMessageClientTest client = new TcpMessageClientTest(_ClientSettings);

            client.Start();
        }