Beispiel #1
0
        public string GetIP()
        {
            StringBuilder ip = new StringBuilder(1025);

            if (Native.enet_address_get_ip(ref nativeAddress, ip, (IntPtr)ip.Capacity) != 0)
            {
                return(String.Empty);
            }

            return(ip.ToString());
        }