mUPnP for C
|
#include <CGUpnpControlPoint.h>
Instance Methods | |
(mUpnpControlPoint *) | - cObject |
(BOOL) | - start |
(BOOL) | - stop |
(BOOL) | - isRunning |
(void) | - search |
(void) | - searchWithST: |
(void) | - setSsdpSearchMX: |
(NSInteger) | - ssdpSearchMX |
(NSArray *) | - devices |
(CGUpnpDevice *) | - deviceForUDN: |
Properties | |
mUpnpControlPoint * | cObject |
id< CGUpnpControlPointDelegate > | delegate |
The CGUpnpControlPoint class is a wrapper class for mUpnpControlPoint of mUPnP for C to program using only Objective-C directly on MacOSX. Currently, the only basic methods are wrapped to control UPnP devices.
- (mUpnpControlPoint *) cObject |
- (CGUpnpDevice *) deviceForUDN: | (NSString*) | udn |
Get a specified UPnP devices by the UDN.
- (NSArray *) devices |
Get all UPnP devices which the control point found as a NSArray object. The array has the devices as instances of CGUpnpDevice.
- (BOOL) isRunning |
Check if the controll point is running.
- (void) search |
Send a M-SEARCH request to find for the all UPnP devices of UPnP in the network. The method waits for the specified MX time. Use setSsdpSearchMX:aMX to change the time. The method is same as searchWithST() when the ST parameter is "ssdp:all".
- (void) searchWithST: | (NSString*) | aST |
Send a M-SEARCH request to find for the specified UPnP devices by a ST parameter in the network. The method waits for the specified MX time. Use setSsdpSearchMX:aMX to change the time.
aST | The Search Target parameter (ex. "ssdp:all") |
- (void) setSsdpSearchMX: | (NSInteger) | aMX |
Set a MX parameter used for SSDP searches in seconds. The parameter is used to wait for M-SEARCH responses in search and searchWithST:aST.
aMX | Time to wait |
- (NSInteger) ssdpSearchMX |
Get a MX parameter used for SSDP searches in seconds. The parameter is used to wait for M-SEARCH responses in search and searchWithST:aST.
- (BOOL) start |
Activate some background threads of the control point such as SSDP and HTTP servers to listen messages and events of UPnP. You must call this method before you can actually use a control point.
- (BOOL) stop |
Stop some background threads of the control point such as SSDP and HTTP servers to listen messages and events of UPnP.
|
readatomicassign |
|
readwriteatomicassign |