NSStreamStatus手动更改

时间:2012-08-14 09:30:14

标签: objective-c ios nsstream

有没有办法手动更改streamStatus

   NSStreamStatusNotOpen = 0,
   NSStreamStatusOpening = 1,
   NSStreamStatusOpen = 2,
   NSStreamStatusReading = 3,
   NSStreamStatusWriting = 4,
   NSStreamStatusAtEnd = 5,
   NSStreamStatusClosed = 6,
   NSStreamStatusError = 7

1 个答案:

答案 0 :(得分:2)

NSStreamStatus用于获取流信息。因此,它不能手动更改,因为它提供接收者的状态。