Up
Authors
- Generated by fedor
-
- 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
. This class is an abstract superclass for concrete implementations of its functionality.
Instance Variables
Method summary
+ (
NSData*)
dataFromTXTRecordDictionary: (
NSDictionary*)txtDictionary;
Availability: OpenStep
Description forthcoming.
+ (
NSDictionary*)
dictionaryFromTXTRecordData: (
NSData*)txtData;
Availability: OpenStep
Description forthcoming.
- (
NSData*)
TXTRecordData;
Availability: OpenStep
Description forthcoming.
- (
NSArray*)
addresses;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
domain;
Availability: OpenStep
Description forthcoming.
- (BOOL)
getInputStream: (
NSInputStream**)inputStream
outputStream: (
NSOutputStream**)outputStream;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
hostName;
Availability: OpenStep
Description forthcoming.
- (id)
initWithDomain: (
NSString*)domain
type: (
NSString*)type
name: (
NSString*)name;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
name;
Availability: OpenStep
Description forthcoming.
- (
NSInteger)
port;
Availability: MacOS-X 10.5.0
Not implemented
- (
NSString*)
protocolSpecificInformation;
Availability: OpenStep
Description forthcoming.
- (void)
publish;
Availability: OpenStep
Description forthcoming.
- (void)
publishWithOptions: (
NSNetServiceOptions)options;
Availability: MacOS-X 10.5.0
Not implemented
- (void)
removeFromRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Description forthcoming.
- (void)
resolve;
Availability: OpenStep
Description forthcoming.
- (void)
resolveWithTimeout: (
NSTimeInterval)timeout;
Availability: OpenStep
Description forthcoming.
- (void)
scheduleInRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Description forthcoming.
- (void)
setDelegate: (id<
NSNetServiceDelegate>)delegate;
Availability: OpenStep
Description forthcoming.
- (void)
setProtocolSpecificInformation: (
NSString*)specificInformation;
Availability: OpenStep
Description forthcoming.
- (BOOL)
setTXTRecordData: (
NSData*)recordData;
Availability: OpenStep
Description forthcoming.
- (void)
startMonitoring;
Availability: OpenStep
Description forthcoming.
- (void)
stop;
Availability: OpenStep
Description forthcoming.
- (void)
stopMonitoring;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
type;
Availability: OpenStep
Description forthcoming.
Instance Variables for NSNetService Class
@protected id _delegate;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected void* _netService;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected void* _reserved;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
- 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. This class is an abstract superclass for concrete implementations of its functionality.
Instance Variables
Method summary
- (id)
init;
Availability: OpenStep
Description forthcoming.
- (void)
removeFromRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Description forthcoming.
- (void)
scheduleInRunLoop: (
NSRunLoop*)aRunLoop
forMode: (
NSString*)mode;
Availability: OpenStep
Description forthcoming.
- (void)
searchForAllDomains;
Availability: OpenStep
Description forthcoming.
- (void)
searchForBrowsableDomains;
Availability: OpenStep
Description forthcoming.
- (void)
searchForRegistrationDomains;
Availability: OpenStep
Description forthcoming.
- (void)
searchForServicesOfType: (
NSString*)serviceType
inDomain: (
NSString*)domainName;
Availability: OpenStep
Description forthcoming.
- (void)
stop;
Availability: OpenStep
Description forthcoming.
Instance Variables for NSNetServiceBrowser Class
@protected id _delegate;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected void* _netServiceBrowser;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected void* _reserved;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
Description forthcoming.
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
didNotSearch: (
NSDictionary*)errorDict;
Availability: OpenStep
Notifies the delegate that the search was
unsuccessful.
See also:
[NSNetServiceBrowser -netServiceBrowserWillSearch:]
- (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
Notifies the delegate that the search is about to
begin.
See also:
[NSNetServiceBrowser -netServiceBrowser:didNotSearch:]
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
Description forthcoming.
Method summary
- (void)
netService: (
NSNetService*)sender
didAcceptConnectionWithInputStream: (
NSInputStream*)inputStream
outputStream: (
NSOutputStream*)outputStream;
Availability: Not in OpenStep/MacOS-X
Notifies the delegate that the service, which must
have been published with option
NSNetServiceListenForConnections,
received a new connection. In order to communicate
with the connecting client, you must
-open
the streams and schedule them with a runloop. To reject
a connection, just
-open
and immediately
-close
both streams.
- (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
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
This protocol must be adopted by any class wishing
to implement an
NSNetServiceBrowser
delegate.
- Declared in:
- Foundation/NSNetServices.h
Availability: OpenStep
Description forthcoming.
Up