InputStreamDelegate
public protocol InputStreamDelegate
                Delegate for event reporting of an input stream.
Reports, if new data is available or if the stream was closed.
- 
                  
                  
Notifies, that new data is available and can be read from the given stream.
The received data can be obtained by calling the
read-functionDeclaration
Swift
func canRead(from inputStream: InputStream)Parameters
inputStreamStream, which did receive data which can be read.
 - 
                  
                  
Notifies, that the stream was closed an no data can be read from it anymore.
Subsequent calls to the
read-function of the given stream will throw an error.Declaration
Swift
func didClose(_ inputStream: InputStream)Parameters
inputStreamStream, which was closed.
 
            View on GitHub
          
      InputStreamDelegate Protocol Reference