On 02/02/2015 05:57 AM, Fl@sh wrote:
Hi. I'm try to use
[please don't reply to an unrelated message - thread hijacking is
considered poor netiquette, and merely changing the subject line without
deleting In-Reply-To headers doesn't work to start a new thread]
virDomainOpenConsole(
domainPtr, NULL, stream, VIR_DOMAIN_CONSOLE_SAFE)
for control remote terminal, but i don't understand
in which text codec the stream returns a data?
There is no encoding going on; the virStreamPtr plays bytes locally
exactly as they were generated remotely in the guest.
If you want to see an example of how virDomainOpenConsole is used
correctly, look at the source code for 'virsh console'.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org