mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
This creates an abstract layer below the protocol code which handles the socket operations. This will make it easier to introduce libvirt virSocketPtr operations in future. In the handle, g->conn contains the connection to the appliance. g->conn is NULL when we're not connected. poll(2) is used instead of select(2). All error messages about launch failing or the appliance unexpectedly dying are handled by two common error message functions, and these contain a better explanation of what to do.