[Libvir] [PATCH] Remote 2/8: Client-server protocol (updated)

Richard W.M. Jones rjones at redhat.com
Sat May 5 10:53:32 UTC 2007


Richard W.M. Jones wrote:
> 2 Client-server protocol
> ------------------------
> 
> A qemud/remote_protocol.x
> A qemud/rpcgen_fix.pl
> A qemud/remote_protocol.c
> A qemud/remote_protocol.h

These are the additional files required to describe the XDR-based 
protocol for client-server communications, with the homebrew RPC 
mechanism on top.  The first file is the protocol itself.

The second file is a Perl script to run after rpcgen which allows the 
code to compile with -Wall -Werror -fstrict-aliasing, and fixes a 64 bit 
bug (that fix really should go upstream BTW).  The strict-aliasing issue 
isn't fully fixed yet - I expect that eventually we should compile 
remote_protocol.c with -fno-strict-aliasing, for safety.  Daniel 
Veillard also asked that this be rewritten in Python (pah!) which I 
might do at the same time.

The last two files are the actual rpcgen-generated rpcgen_fix-fixed 
code.  I put these two files into EXTRA_DIST because I feel that people 
shouldn't be required to have rpcgen & Perl just to compile libvirt. 
(These files are arch-independent so there is no need to recompile them 
unless remote_protocol.x itself changes).

Rich.

-- 
Emerging Technologies, Red Hat  http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF     Mobile: +44 7866 314 421

Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.
Registered in England and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA) and David
Owens (Ireland)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: remote_protocol.x
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070505/6f53a097/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpcgen_fix.pl
Type: application/x-perl
Size: 1944 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070505/6f53a097/attachment-0001.pl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remote_protocol.c
Type: text/x-csrc
Size: 22043 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070505/6f53a097/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remote_protocol.h
Type: text/x-chdr
Size: 28647 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070505/6f53a097/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070505/6f53a097/attachment-0005.bin>


More information about the libvir-list mailing list