Example #1
0
        public bool SetHost(string hostName)
        {
            if (hostName == null)
            {
                throw new ArgumentNullException("hostName");
            }

            return(Native.enet_address_set_hostname(ref nativeAddress, hostName) == 0);
        }