Method

GioInputStreamis_closed

Declaration [src]

gboolean
g_input_stream_is_closed (
  GInputStream* stream
)

Description [src]

Checks if an input stream has been closed.

This only indicates whether the stream has been closed from this end by calling g_input_stream_close(). If the stream is a pipe or socket, for example, and the process on the other end has closed its end, this method will still return false. Methods which try to read from the input stream will return any remaining data, end-of-file or an error, however.

Return value

Type: gboolean

True if the stream has been closed; false otherwise.