0
我正在iOS
應用程序中工作。 我試圖連接到https
服務器與NSStream
連接。 隨着NSURLConnection
,這項工作很好,我可以信任這樣的挑戰:SSL流套接字連接
-(void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {
}
但我的問題是,僅在流中可用的委託:
- (void) stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode {
}
如何管理呢?