DWDrmServer Class Reference

Inherits from NSObject
Declared in DWDrmServer.h
DWDrmServer.m

  listenPort

若 server 启动成功,listenPort 为server绑定的端口。

@property (assign, nonatomic, readonly) UInt16 listenPort

Declared In

DWDrmServer.h

– initWithListenPort:

初始化 DWDrmServer

- (id)initWithListenPort:(UInt16)port

Parameters

port

指定 drmServer 监听的端口。 若port不为0,则绑定指定端口。若绑定失败,则转由内核分配。

Return Value

返回一个 DWDrmServer 实例

Declared In

DWDrmServer.h

– start

启动 server

- (BOOL)start

Return Value

启动成功返回 YES,否则返回NO。

Declared In

DWDrmServer.h

– stop

停止 server。

- (void)stop

Declared In

DWDrmServer.h