Ejemplo n.º 1
0
        public void Start()
        {
            // Initialize Protocol
            Protocol = new JCP(Encryption, EncryptionKey);
            if (Encryption)
            {
                Shared.Log.Message("socket", "Encryption Enabled");
            }
            else
            {
                Shared.Log.Message("socket", "Encryption DISABLED");
            }


            Host = Shared.Network.GetIPAddress(Host);
            Connection.Connect(Host, Port);
            Connection.Start();
        }
Ejemplo n.º 2
0
        public void Start()
        {
            // Initialize Protocol
            Protocol = new JCP(Settings.EncryptionUseEncryptedProtocol, Settings.EncryptionServerEncryptionKey);
            if (Settings.EncryptionUseEncryptedProtocol)
            {
                Shared.Log.Message("socket", "Encryption Enabled");
            }
            else
            {
                Shared.Log.Message("socket", "Encryption DISABLED");
            }


            Application.OnConnecting();
            Connection.Connect(Settings.ServerAddress, Settings.ServerPort);
            Connection.Start();
        }