Up
Authors
- Generated by richard
-
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
NSNetService
lets you publish a network service in a domain
using multicast DNS. Additionally, it lets you
resolve a network service that was discovered
by
NSNetServiceBrowser
.
Method summary
+ (
NSData*)
dataFromTXTRecordDictionary: (
NSDictionary*)txtDictionary;
Availability: OpenStep
Converts txtDictionary into a TXT data.
+ (
NSDictionary*)
dictionaryFromTXTRecordData: (
NSData*)txtData;
Availability: OpenStep
Converts the TXT data txtData into a
dictionary.
- (
NSData*)
TXTRecordData;
Availability: OpenStep
Returns the TXT record.
- (
NSArray*)
addresses;
Availability: OpenStep
Returns an array of NSData objects that each
contain the socket address of the service.
- (id)
delegate;
Availability: OpenStep
Returns the receiver's delegate.
- (
NSString*)
domain;
Availability: OpenStep
Returns the domain name of the service.
- (BOOL)
getInputStream: (
NSInputStream**)inputStream
outputStream: (
NSOutputStream**)outputStream;
Availability: OpenStep
Retrieves the input and output stream for the
receiver.
- (
NSString*)
hostName;
Availability: OpenStep
Returns the host name of the computer publishing
the service.
- (id)
initWithDomain: (
NSString*)domain
type: (
NSString*)type
name: (
NSString*)name;
Availability: OpenStep
Initializes the receiver for service
resolution. Use this method to create an object
if you intend to
-resolve
a service.
- (id)
initWithDomain: (
NSString*)domain
type: (
NSString*)type
name: (
NSString*)name
port: (int)port;
Availability: OpenStep
This is a designated initialiser for the class.
Initializes the receiver for service
publication. Use this method to create an
object if you intend to
-publish
a service.
- (
NSString*)
name;
Availability: OpenStep
Returns the name of the service.
- (
NSInteger)
port;
Availability: MacOS-X 10.5.0
Not implemented
- (
NSString*)
protocolSpecificInformation;
Availability: OpenStep
- (void)
publish;
Availability: OpenStep
Attempts to publish a service on the network.
- (void)
publishWithOptions: (
NSNetServiceOptions)options;
Availability: MacOS-X 10.5.0
Not implemented
- (void)
removeFromRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Removes the service from the specified run loop.
- (void)
resolve;
Availability: OpenStep
- (void)
resolveWithTimeout: (
NSTimeInterval)timeout;
Availability: OpenStep
Starts a service resolution for a limited duration.
- (void)
scheduleInRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Adds the service to the specified run loop.
- (void)
setDelegate: (id)delegate;
Availability: OpenStep
Sets the receiver's delegate.
- (void)
setProtocolSpecificInformation: (
NSString*)specificInformation;
Availability: OpenStep
- (BOOL)
setTXTRecordData: (
NSData*)recordData;
Availability: OpenStep
Sets the TXT record.
- (void)
startMonitoring;
Availability: OpenStep
Starts monitoring of TXT record updates.
- (void)
stop;
Availability: OpenStep
Stops the current attempt to publish or resolve a
service.
- (void)
stopMonitoring;
Availability: OpenStep
Stops monitoring of TXT record updates.
- (
NSString*)
type;
Availability: OpenStep
Returns the type of the service.
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
NSNetServiceBrowser
asynchronously lets you discover network domains and, additionally, search for a type of network service. It sends its delegate a message whenever it discovers a new network service, and whenever a network service goes away.
Each
NSNetServiceBrowser
performs one search at a time. So in order to perform multiple searches simultaneously, create multiple instances.
Method summary
- (id)
delegate;
Availability: OpenStep
Returns the receiver's delegate.
- (id)
init;
Availability: OpenStep
This is a designated initialiser for the class.
Initializes the receiver.
- (void)
removeFromRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Removes the receiver from the specified runloop.
- (void)
scheduleInRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Adds the receiver to the specified runloop.
- (void)
searchForAllDomains;
Availability: OpenStep
Search for all visible domains. This method is
deprecated.
- (void)
searchForBrowsableDomains;
Availability: OpenStep
Search for all browsable domains.
- (void)
searchForRegistrationDomains;
Availability: OpenStep
Search for all registration domains. These domains
can be used to register a service.
- (void)
searchForServicesOfType: (
NSString*)serviceType
inDomain: (
NSString*)domainName;
Availability: OpenStep
Search for a particular service within a given
domain.
- (void)
setDelegate: (id)delegate;
Availability: OpenStep
Sets the receiver's delegate.
- (void)
stop;
Availability: OpenStep
Halts all currently running searches.
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
This informal protocol must be adopted by any class
wishing to implement an
NSNetServiceBrowser
delegate.
Method summary
- (void)
netServiceBrowser: (
NSNetServiceBrowser*)aNetServiceBrowser
didFindDomain: (
NSString*)domainString
moreComing: (BOOL)moreComing;
Availability: OpenStep
- (void)
netServiceBrowser: (
NSNetServiceBrowser*)aNetServiceBrowser
didFindService: (
NSNetService*)aNetService
moreComing: (BOOL)moreComing;
Availability: OpenStep
- (void)
netServiceBrowser: (
NSNetServiceBrowser*)aNetServiceBrowser
didRemoveDomain: (
NSString*)domainString
moreComing: (BOOL)moreComing;
Availability: OpenStep
Notifies the delegate that a domain has become
unavailable.
See also:
- (void)
netServiceBrowser: (
NSNetServiceBrowser*)aNetServiceBrowser
didRemoveService: (
NSNetService*)aNetService
moreComing: (BOOL)moreComing;
Availability: OpenStep
Notifies the delegate that a service has become
unavailable.
See also:
- (void)
netServiceBrowserDidStopSearch: (
NSNetServiceBrowser*)aNetServiceBrowser;
Availability: OpenStep
- (void)
netServiceBrowserWillSearch: (
NSNetServiceBrowser*)aNetServiceBrowser;
Availability: OpenStep
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
This informal protocol must be adopted by any class
wishing to implement an
NSNetService
delegate.
Method summary
- (void)
netService: (
NSNetService*)sender
didUpdateTXTRecordData: (
NSData*)data;
Availability: OpenStep
- (void)
netServiceDidPublish: (
NSNetService*)sender;
Availability: OpenStep
- (void)
netServiceDidResolveAddress: (
NSNetService*)sender;
Availability: OpenStep
- (void)
netServiceDidStop: (
NSNetService*)sender;
Availability: OpenStep
- (void)
netServiceWillPublish: (
NSNetService*)sender;
Availability: OpenStep
- (void)
netServiceWillResolve: (
NSNetService*)sender;
Availability: OpenStep
Up