示例#1
0
        /// <summary>
        /// 发送主机信息
        /// </summary>
        private void sendHostMessage()
        {
            string   hostName = NetMessage.GetHostName();
            string   hostIP   = NetMessage.GetIpAdrress(hostName);
            HostCode code     = new HostCode();

            code.Head = CodeHead.HOST_MESSAGE;
            code.Name = hostName;
            code.IP   = hostIP;
            mainChick.SendCode(code);
        }