[libvirt-users] virStream text codec

Eric Blake eblake at redhat.com
Mon Feb 2 16:45:20 UTC 2015


On 02/02/2015 05:57 AM, Fl at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150202/388c22f1/attachment.sig>


More information about the libvirt-users mailing list