Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

MBS Xojo Network Kit

NSNetServiceBrowserMB class:

Class NSNetServiceBrowserMB
ComputedProperty Description As text
Sub Set() End
Sub Get() // description for debugging End
End ComputedProperty
ComputedProperty includesPeerToPeer As Boolean
Sub Set() // Initially set to false. // Set to true to also browse over peer to peer Bluetooth and Wi-Fi (if available). // Must be set before starting to search. End
Sub Get() // Initially set to false. // Set to true to also browse over peer to peer Bluetooth and Wi-Fi (if available). // Must be set before starting to search. End
End ComputedProperty
Const FoundationLib = Foundation
Const NSNetServiceBrowserDelegateMBSKit = NSNetServiceBrowserDelegateMBSKit
Const NSNetServicesActivityInProgress = -72003
Const NSNetServicesBadArgumentError = -72004
Const NSNetServicesCancelledError = -72005
Const NSNetServicesCollisionError = -72001
Const NSNetServicesInvalidError = -72006
Const NSNetServicesNotFoundError = -72002
Const NSNetServicesTimeoutError = -72007
Const NSNetServicesUnknownError = -72000
Event didFindDomain(domainString as text, moreComing as Boolean) End
Event didFindService(Service as NSNetServiceMB, moreComing as Boolean) End
Event didNotSearch(ErrorDomain as Integer, ErrorCode as Integer) End
Event didRemoveDomain(domainString as text, moreComing as Boolean) End
Event didRemoveService(Service as NSNetServiceMB, moreComing as Boolean) End
Event didStopSearch() End
Event willSearch() End
Sub CheckEvents() // for console only // runs runloop for one round to check for events End
Sub Constructor() End
Sub Constructor(Handle as Integer) // init with handle End
Sub Destructor() End
Sub searchForBrowsableDomains() // Starts a search for domains that are browsable via Bonjour and the computer's network configuration. // Discovered domains are reported to the DidFindDomain event. There may be more than one browsable domain. End
Sub searchForRegistrationDomains() // Starts a search for domains in which the network configuration allows registration (i.e. publishing). // Most NSNetServiceBrowser clients do not need to use this API, as it is sufficient to publish an NSNetService // instance with the empty string (see -[NSNetService initWithDomain:type:name:port:]). // Discovered domains are reported to the DidFindDomain event. // There may be more than one registration domain. End
Sub searchForServicesOfType(type as text, domain as text = "") // Starts a search for services of the specified type in the domain indicated by domainString. // For each service discovered, a foundService event is raised. // End
Sub stop() // Stops the currently running search. End
Property Protected Handle As Integer
End Class




Links
MBS Xojo Chart Plugins