The difference is that close will push the remaining data to be sent
before closing the connection.
struct channel_layer *layer = data;
int fd = g_io_channel_unix_get_fd (layer->channel);
g_source_remove (layer->watch);
struct channel_layer *layer = data;
int fd = g_io_channel_unix_get_fd (layer->channel);
g_source_remove (layer->watch);
- shutdown (fd, SHUT_RDWR);
g_io_channel_unref (layer->channel);
g_slice_free (struct channel_layer, layer);
}
g_io_channel_unref (layer->channel);
g_slice_free (struct channel_layer, layer);
}