0
我正在iOS
应用程序中工作。 我试图连接到https
服务器与NSStream
连接。 随着NSURLConnection
,这项工作很好,我可以信任这样的挑战:SSL流套接字连接
-(void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {
}
但我的问题是,仅在流中可用的委托:
- (void) stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode {
}
如何管理呢?