docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Parse

    Parse(string, ushort, NetworkFamily)

    Same as TryParse<T>, except an endpoint is always returned. If the given address, port, and family don't represent a valid endpoint, the default one is returned.

    Declaration
    public static NetworkEndPoint Parse(string address, ushort port, NetworkFamily family = NetworkFamily.Ipv4)
    Parameters
    Type Name Description
    string address

    String representation of the address.

    ushort port

    Return value for the parsed endpoint.

    NetworkFamily family

    Address family of 'address'.

    Returns
    Type Description
    NetworkEndPoint

    Parsed network endpoint (default if parsing failed).

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)