Ejemplo n.º 1
0
        public static void SendMessageToMyCoreNode(MsgType msgType, string msg)
        {
            var msgTxt = cm.GetMessageText(msgType, msg);

            Debugger.Log(msgTxt);
            ConnectionManager4Edge.SendMsg(new IPEndPoint(IPAddress.Parse(myCoreHost), myCorePort), msgTxt);
        }
Ejemplo n.º 2
0
        static ClientCore()
        {
            Debugger.Log("Initializing ClientCore...");
            var myIp = GetMyIp();

            Debugger.Log("Client IP address is set to ..." + myIp);
            myCoreHost = SettingsSaveSystem.GetConnectIP();
            myCorePort = SettingsSaveSystem.GetConnectPort();
            cm         = new ConnectionManager4Edge(myIp, SettingsSaveSystem.GetHostPort(), myCoreHost, myCorePort);
        }