Re: [Spice-devel] [PATCH spice-streaming-agent v2 3/3] Introduce OutboundMessages for the StreamPort class

2018-10-12 Thread Lukáš Hrázký
On Fri, 2018-10-12 at 06:50 -0400, Frediano Ziglio wrote: > > > > Heavily based on code by Christophe de Dinechin. > > > > Wraps the serialization code in the OutboundMessage class and its > > descendants for each specific message. Uses Cruiously Recurring Template > > Pattern (CRTP) to avoid

Re: [Spice-devel] [PATCH spice-streaming-agent v2 3/3] Introduce OutboundMessages for the StreamPort class

2018-10-12 Thread Frediano Ziglio
> > Heavily based on code by Christophe de Dinechin. > > Wraps the serialization code in the OutboundMessage class and its > descendants for each specific message. Uses Cruiously Recurring Template > Pattern (CRTP) to avoid runtime overhead of polymorphism. > > The messages are placed along

[Spice-devel] [PATCH spice-streaming-agent v2 3/3] Introduce OutboundMessages for the StreamPort class

2018-10-12 Thread Lukáš Hrázký
Heavily based on code by Christophe de Dinechin. Wraps the serialization code in the OutboundMessage class and its descendants for each specific message. Uses Cruiously Recurring Template Pattern (CRTP) to avoid runtime overhead of polymorphism. The messages are placed along with the code that