Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSXPCListenerMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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 |
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 |
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:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.