/// <summary> /// Establishes a connection to the remote host. /// </summary> /// <param name="address">The Ip Address of the remote host.</param> /// <param name="port">The port of the remote host.</param> public SocketStatus Connect(UNetIp address, ushort port) { return(Connect(new IPEndPoint(address.ToIPAddress(), port))); }
/// <summary> /// Starts connecting to the remote host. /// </summary> /// <param name="address">The Ip Address of the remote host.</param> /// <param name="port">The port of the remote host.</param> public ValueTask <SocketStatus> ConnectAsync(UNetIp address, ushort port) { return(ConnectAsync(new IPEndPoint(address.ToIPAddress(), port))); }