GameRevision.GW2Emu.Common.Serialization.Deserializer.ReadIPEndPoint C# (CSharp) Method

ReadIPEndPoint() public method

public ReadIPEndPoint ( ) : IPEndPoint
return System.Net.IPEndPoint
        public IPEndPoint ReadIPEndPoint()
        {
            SocketAddress socketAddress = new SocketAddress(AddressFamily.InterNetwork);
            byte[] socketAddressBytes = ReadBytes(28);

            for (int i = 0; i < socketAddressBytes.Length; i++)
            {
                socketAddress[i] = socketAddressBytes[i];
            }

            return (IPEndPoint)new IPEndPoint(IPAddress.Any, 0).Create(socketAddress);
        }