CFURLGetPortNumber(_:)
Returns the port number from a given URL.
Declaration
func CFURLGetPortNumber(_ anURL: CFURL!) -> Int32Parameters
- anURL:
The
CFURLobject to examine.
Return Value
The port number of anURL, or -1 if no port number exists.
See Also
Accessing the Parts of a URL
CFURLCanBeDecomposed(_:)CFURLCopyFileSystemPath(_:_:)CFURLCopyFragment(_:_:)CFURLCopyHostName(_:)CFURLCopyLastPathComponent(_:)CFURLCopyNetLocation(_:)CFURLCopyParameterString(_:_:)CFURLCopyPassword(_:)CFURLCopyPath(_:)CFURLCopyPathExtension(_:)CFURLCopyQueryString(_:_:)CFURLCopyResourceSpecifier(_:)CFURLCopyScheme(_:)CFURLCopyStrictPath(_:_:)CFURLCopyUserName(_:)