Show / Hide Table of Contents

    Class Address

    Abstraction for an IP address.

    Inheritance
    Object
    Address
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    [Obsolete("Use IPEndPoint instead")]
    public class Address

    Constructors

    | Improve this Doc View Source

    Address(Int32)

    Initializes a new instance of the Address class.

    Declaration
    public Address(int port)
    Parameters
    Type Name Description
    Int32 port

    The port.

    Remarks

    This constructor omits the address part.

    | Improve this Doc View Source

    Address(Nullable<String>, Int32)

    Initializes a new instance of the Address class.

    Declaration
    public Address(string? address, int port)
    Parameters
    Type Name Description
    Nullable<String> address

    IPv4 address.

    Int32 port

    The port.

    Properties

    | Improve this Doc View Source

    AddressFamily

    Gets the IP address family.

    Declaration
    public AddressFamily? AddressFamily { get; }
    Property Value
    Type Description
    Nullable<AddressFamily>
    | Improve this Doc View Source

    IPAddress

    Gets the IP address.

    Declaration
    public IPAddress? IPAddress { get; }
    Property Value
    Type Description
    Nullable<IPAddress>
    | Improve this Doc View Source

    Port

    Gets the port.

    Declaration
    public int Port { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    Parse(Nullable<String>)

    Parses an IP address.

    Declaration
    public static Address? Parse(string? address)
    Parameters
    Type Name Description
    Nullable<String> address

    The IP address to parse.

    Returns
    Type Description
    Nullable<Address>

    The parsed IP address.

    | Improve this Doc View Source

    ToString()

    Converts the IP address to a string as required by the PASV command.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    The IP address as string.

    Overrides
    Object.ToString()
    | Improve this Doc View Source

    ToString(Boolean)

    Converts the IP address into a string.

    Declaration
    public string ToString(bool logFormat)
    Parameters
    Type Name Description
    Boolean logFormat
    true
    when it should be converted to a loggable format, otherwise the FTP format is used.
    Returns
    Type Description
    String

    The IP address as string.

    | Improve this Doc View Source

    ToUri()

    Converts this address to an URI.

    Declaration
    public Uri ToUri()
    Returns
    Type Description
    Uri

    The newly created URI.

    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.