Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSXPCListenerMBS class.

NSXPCListenerMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Closes listener.

NSXPCListenerMBS.Constructor(Anonymous as boolean = false)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates a new listener connection.

If Anonymous is true: Initializes with a new anonymous listener connection.
If false: Initializes with the singleton listener used to listen for incoming connections in an XPC service.

see also:
https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSXPCListener_reference/translated_content/NSXPCListener.html

See also:

NSXPCListenerMBS.Constructor(Name as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes a listener in a LaunchAgent or LaunchDaemon which has a name advertised in a launchd.plist file.

For example, you might use this in an agent launched by launchd with a launchd.plist contained in ~/Library/LaunchAgents, or a daemon launched by launchd with a launchd.plist contained in /Library/LaunchDaemons.

Available in OS X v10.8 and later.

See also:

NSXPCListenerMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The destructor.

NSXPCListenerMBS.invalidate

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Invalidates the listener.

After calling this method, no more connections are created. Once a listener is invalidated it may not be resumed or suspended.
Available in OS X v10.8 and later.

NSXPCListenerMBS.resume

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Starts processing of incoming requests.

All listeners start suspended and must be resumed before they begin processing incoming requests.

If called on the serviceListener object, this method never returns. Therefore, you should call it as the last step inside the XPC service's main function after setting up any desired initial state and configuring the listener itself.

If called on any other NSXPCListener, the connection is resumed, and the method returns immediately.
Available in OS X v10.8 and later.

NSXPCListenerMBS.suspend

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Suspends the listener.

Suspends and resumes must be balanced before the listener may be invalidated.
Available in OS X v10.8 and later.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...