DWHttpServerConnection Class Reference

Inherits from NSObject
Declared in DWHttpServerConnection.h
DWHttpServerConnection.m

Other Methods

– initWithSocketNativeHandle:

初始化 该类用来处理与 drmServer 建立的连接的所有事项。

- (id)initWithSocketNativeHandle:(CFSocketNativeHandle)nativeHandler

Parameters

nativeHandler

drmServer accept的文件描述符。

Return Value

DWHttpServerConnection

Discussion

初始化 该类用来处理与 drmServer 建立的连接的所有事项。

Declared In

DWHttpServerConnection.h

– start

开始处理 连接。

- (void)start

Discussion

开始处理 连接。

Declared In

DWHttpServerConnection.h

– finish

终止 连接,释放资源。

- (void)finish

Discussion

终止 连接,释放资源。

Declared In

DWHttpServerConnection.h

Other Methods

  finishBlock

当connection结束时被调用。

@property (copy, nonatomic) DWHttpServerConnectionFinishBlock finishBlock

Discussion

当connection结束时被调用。

Declared In

DWHttpServerConnection.h

Extension Methods

  buffers

存放 proxy 返回的数据,元素类型为 DWHttpServerBuffer。

@property (strong, nonatomic) NSMutableArray *buffers

Discussion

存放 proxy 返回的数据,元素类型为 DWHttpServerBuffer。

Declared In

DWHttpServerConnection.m

  videoUrl

视频的播放url,从 requestUrl 分析得出。

@property (strong, nonatomic) NSURL *videoUrl

Discussion

视频的播放url,从 requestUrl 分析得出。

Declared In

DWHttpServerConnection.m

  requestUrl

requestUrl 格式:http://127.0.0.1:port/pcm?url=xxx

@property (strong, nonatomic) NSURL *requestUrl

Discussion

requestUrl 格式:http://127.0.0.1:port/pcm?url=xxx

其中 参数url的值即 videoUrl,需要代理的视频播放url。

Declared In

DWHttpServerConnection.m

  totalBytesReceived

从 proxy 接收到的总字节数。

@property (assign, nonatomic) NSInteger totalBytesReceived

Discussion

从 proxy 接收到的总字节数。

Declared In

DWHttpServerConnection.m

  totalBytesWritten

发送给 client 的总字节数。

@property (assign, nonatomic) NSInteger totalBytesWritten

Discussion

发送给 client 的总字节数。

Declared In

DWHttpServerConnection.m