Method

GLibIOChannelshutdown

Declaration

GIOStatus
g_io_channel_shutdown (
  GIOChannel* channel,
  gboolean flush,
  GError** error
)

Description

Close an IO channel. Any pending data to be written will be flushed if flush is TRUE. The channel will not be freed until the last reference is dropped using g_io_channel_unref().

Parameters

flush gboolean
 

If TRUE, flush pending.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GIOStatus
 

The status of the operation.