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; } }
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); } }