Public Member Functions | Protected Attributes | Properties

PeerServer Class Reference

This class starts a NSNetService which can be discovered by NSNetService Browsers. More...

#import <PeerServer.h>

List of all members.

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
NSNetServicenetService
 NSNetService which is started at this peer.

Properties

id< PeerServerDelegatedelegate
 Delegate receives various notifications about the state of our server.

Detailed Description

This class starts a NSNetService which can be discovered by NSNetService Browsers.


Member Function Documentation

- (BOOL) createServer
- (NSNetService *) getNSNetService

Will return netService.

Returns:
NSNetService
- (BOOL) publishService
- (BOOL) start

Initialize and start listening for connections.

Returns:
YES if it is successful; otherwise, NO
- (void) stop

Stop the service.

- (void) terminateServer
- (void) unpublishService

Member Data Documentation

- (CFSocketRef) listeningSocket [protected]
- (NSNetService*) netService [protected]

NSNetService which is started at this peer.

- (uint16_t) port [protected]

Property Documentation

- (id< PeerServerDelegate >) delegate [read, write, retain]

Delegate receives various notifications about the state of our server.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties