Post

Replies

Boosts

Views

Activity

Reply to SocketStream::read(__CFReadStream*, unsigned char*, long, CFStreamError*, unsigned char*) + 548 (SocketStream.cpp:2698)
The input stream is generated by CFNetwork, below is my code without modifying anything: CFReadStreamRef readStream;   CFWriteStreamRef writeStream;   CFStreamCreatePairWithSocketToHost(NULL, (__bridge CFStringRef)self.host, self.port, &readStream, &writeStream);   CFReadStreamSetProperty(readStream, kCFStreamPropertyShouldCloseNativeSocket, kCFBooleanTrue);   CFWriteStreamSetProperty(writeStream, kCFStreamPropertyShouldCloseNativeSocket, kCFBooleanTrue);
Feb ’22