Coder Social home page Coder Social logo

perl-protocol-sys-virt's Introduction

NAME

Protocol::Sys::Virt - Abstract LibVirt protocol implementation

VERSION

SYNOPSIS

DESCRIPTION

This distribution implements the mechanics of the LibVirt protocol. With it, client and server components can be built, although it's unlikely anyone would want to build a LibVirt compatible server.

Rationale behind the creation of this distribution is that it implements a truely asynchronous interface to LibVirt; a property Sys::Virt doesn't have, even when using its event loop integration. After having implemented Sys::Virt::IO::Async, it became apparent that the invocations to the methods in the Sys::Virt package are blocking regardless. The LibVirt development team explained this is by design. The solution in e.g. Python is to use threading: the underlying protocol and handling on the server is asynchronous, but the API calls are not. Unfortunately, in Perl, threading isn't a viable option: first of all because using Perl threads is highly discouraged, but more so because each thread creates its own Perl interpreter with its own copies of all variables -- a clear distinction with Python, where a single interpreter is used for all threads, sharing variable values.

TODO

  • Write functions which remote_protocol.x lists as "not automatically generated"

    • CLOSE

    • EVENT CALLBACKS (de)registration

  • Generate reply wrappers to unpack structures into function arguments

  • Write documentation (lots of it)

AUTHOR

  • Erik Huelsmann

SEE ALSO

Sys::Virt, Sys::Virt::IO::Async, LibVirt

LICENSE AND COPYRIGHT

perl-protocol-sys-virt's People

Contributors

ehuelsmann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.