Protocol: NSStreamDelegate
Overview
The NSStreamDelegate protocol defines the optional methods implemented by delegates of NSStream objects.The delegate receives this message when a given event has occurred on a given stream.
Instance Method Summary (collapse)
-
- stream:handleEvent:
The delegate receives this message when a given event has occurred on a given stream.
Instance Method Details
- (Object) stream(theStream, handleEvent:streamEvent)
The delegate receives this message when a given event has occurred on a given stream. The delegate receives this message only if theStream is scheduled on a run loop. The message is sent on the stream object’s thread. The delegate should examine streamEvent to determine the appropriate action it should take.