示例#1
0
        private void AssignHostDetails(INetLanDriver driver)
        {
            if (driver is net_tcp_ip)
            {
                var tcpIP = (( net_tcp_ip )driver);

                tcpIP.HostName = Host.CVars.Get("hostname").Get <String>();
                tcpIP.HostPort = Host.Network.HostPort;
            }
        }
示例#2
0
        private void ReturnHostDetails(INetLanDriver driver)
        {
            if (driver is net_tcp_ip)
            {
                var tcpIP = (( net_tcp_ip )driver);

                Host.Network.MyTcpIpAddress = tcpIP.HostAddress;

                Host.CVars.Set("hostname", tcpIP.HostName);
            }
        }