Used to browse other peers. More...
#import <PeerBrowser.h>
Public Member Functions | |
(BOOL) | - start |
Starts browsing other peers. | |
(void) | - stop |
Stop Browsing for Bonjour services and remove all peers from peers array. | |
(void) | - sortPeers |
Protected Attributes | |
NSNetServiceBrowser * | netServiceBrowser |
instance of NSNetServiceBrowser | |
Properties | |
NSMutableArray * | peers |
to store available services | |
id< PeerBrowserDelegate > | delegate |
delegate to handle new services |
Used to browse other peers.
- (void) sortPeers |
- (BOOL) start |
Starts browsing other peers.
- (void) stop |
Stop Browsing for Bonjour services and remove all peers from peers array.
- (NSNetServiceBrowser*) netServiceBrowser [protected] |
instance of NSNetServiceBrowser
- (id< PeerBrowserDelegate >) delegate [read, write, retain] |
delegate to handle new services
- (NSMutableArray *) peers [read, assign] |
to store available services