| Top |  |  |  |  | 
FuIOChannel *
fu_io_channel_unix_new (gint fd);
Creates a new object to write and read from.
Since: 1.2.2
FuIOChannel * fu_io_channel_new_file (const gchar *filename,GError **error);
Creates a new object to write and read from.
Since: 1.2.2
gint
fu_io_channel_unix_get_fd (FuIOChannel *self);
Gets the file descriptor for the device.
Since: 1.2.2
gboolean fu_io_channel_shutdown (FuIOChannel *self,GError **error);
Closes the file descriptor for the device.
Since: 1.2.2
gboolean fu_io_channel_write_raw (FuIOChannel *self,const guint8 *data,gsize datasz,guint timeout_ms,FuIOChannelFlags flags,GError **error);
Writes bytes to the TTY, that will fail if exceeding timeout_ms
.
| self | ||
| data | buffer to write | |
| datasz | size of  | |
| timeout_ms | timeout in ms | |
| flags | channel flags, e.g.  | |
| error | optional return location for an error. | [nullable] | 
Since: 1.2.2
gboolean fu_io_channel_read_raw (FuIOChannel *self,guint8 *buf,gsize bufsz,gsize *bytes_read,guint timeout_ms,FuIOChannelFlags flags,GError **error);
Reads bytes from the TTY, that will fail if exceeding timeout_ms
.
| self | ||
| buf | optional buffer. | [nullable] | 
| bufsz | size of  | |
| bytes_read | data written to  | [out][nullable] | 
| timeout_ms | timeout in ms | |
| flags | channel flags, e.g.  | |
| error | optional return location for an error. | [nullable] | 
Since: 1.2.2
gboolean fu_io_channel_write_bytes (FuIOChannel *self,GBytes *bytes,guint timeout_ms,FuIOChannelFlags flags,GError **error);
Writes bytes to the TTY, that will fail if exceeding timeout_ms
.
| self | ||
| bytes | buffer to write | |
| timeout_ms | timeout in ms | |
| flags | channel flags, e.g.  | |
| error | optional return location for an error. | [nullable] | 
Since: 1.2.2
gboolean fu_io_channel_write_byte_array (FuIOChannel *self,GByteArray *buf,guint timeout_ms,FuIOChannelFlags flags,GError **error);
Writes bytes to the TTY, that will fail if exceeding timeout_ms
.
| self | ||
| buf | buffer to write | |
| timeout_ms | timeout in ms | |
| flags | channel flags, e.g.  | |
| error | optional return location for an error. | [nullable] | 
Since: 1.3.2
GBytes * fu_io_channel_read_bytes (FuIOChannel *self,gssize max_size,guint timeout_ms,FuIOChannelFlags flags,GError **error);
Reads bytes from the TTY, that will fail if exceeding timeout_ms
.
| self | ||
| max_size | maximum size of the returned blob, or -1 for no limit | |
| timeout_ms | timeout in ms | |
| flags | channel flags, e.g.  | |
| error | optional return location for an error. | [nullable] | 
Since: 1.2.2
GByteArray * fu_io_channel_read_byte_array (FuIOChannel *self,gssize max_size,guint timeout_ms,FuIOChannelFlags flags,GError **error);
Reads bytes from the TTY, that will fail if exceeding timeout_ms
.
| self | ||
| max_size | maximum size of the returned blob, or -1 for no limit | |
| timeout_ms | timeout in ms | |
| flags | channel flags, e.g.  | |
| error | optional return location for an error. | [nullable] | 
Since: 1.3.2