stream_set_swap_bytes stream_close navigation bar

Table of Contents

stream_shutdown

Shuts down a stream.

Syntax

stream_shutdown(stream)
    

Description

This function shuts down operations on the stream. This function is typically used to interrupt operations on the stream such that stream_send operations exit immediately, the peer is notified that the connection is closing (for some protocols, like tcpip or shmem) and stream_receive operations return with a zero once the data that was last sent from the peer has been exhausted.

Parameters

stream

Stream handle returned by stream_connect or stream_accept.

Outputs

This function has no outputs.

Examples

stream_shutdown(stream);    % Shut down the stream
    

See Also

 

navigation bar