This class starts a NSNetService which can be discovered by NSNetService Browsers. More...
#import <PeerServer.h>
Public Member Functions | |
(BOOL) | - start |
Initialize and start listening for connections. | |
(void) | - stop |
Stop the service. | |
(NSNetService *) | - getNSNetService |
Will return netService. | |
(BOOL) | - createServer |
(void) | - terminateServer |
(BOOL) | - publishService |
(void) | - unpublishService |
Protected Attributes | |
uint16_t | port |
CFSocketRef | listeningSocket |
NSNetService * | netService |
NSNetService which is started at this peer. | |
Properties | |
id< PeerServerDelegate > | delegate |
Delegate receives various notifications about the state of our server. |
This class starts a NSNetService which can be discovered by NSNetService Browsers.
- (BOOL) createServer |
- (NSNetService *) getNSNetService |
Will return netService.
- (BOOL) publishService |
- (BOOL) start |
Initialize and start listening for connections.
- (void) stop |
Stop the service.
- (void) terminateServer |
- (void) unpublishService |
- (CFSocketRef) listeningSocket [protected] |
- (NSNetService*) netService [protected] |
NSNetService which is started at this peer.
- (uint16_t) port [protected] |
- (id< PeerServerDelegate >) delegate [read, write, retain] |
Delegate receives various notifications about the state of our server.