Exemple #1
0
        public string GetHost()
        {
            StringBuilder hostName = new StringBuilder(1025);

            if (Native.enet_address_get_hostname(nativeAddress, hostName, (IntPtr)hostName.Capacity) != 0)
            {
                return(String.Empty);
            }

            return(hostName.ToString());
        }