]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce a generic object for using network sockets
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 6 Dec 2010 17:03:35 +0000 (17:03 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 24 Jun 2011 10:48:18 +0000 (11:48 +0100)
commit58b5b14e5e19839885342bc43da8de4129dd3548
tree5890da80067dabbe366e38e99d685212efb6ad98
parentceacc1dd4f73c87bc2521bd35dec97a3c4866e78
Introduce a generic object for using network sockets

Introduces a simple wrapper around the raw POSIX sockets APIs
and name resolution APIs. Allows for easy creation of client
and server sockets with correct usage of name resolution APIs
for protocol agnostic socket setup.

It can listen for UNIX and TCP stream sockets.

It can connect to UNIX, TCP streams directly, or indirectly
to UNIX sockets via an SSH tunnel or external command

* src/Makefile.am: Add to libvirt-net-rpc.la
* src/rpc/virnetsocket.c, src/rpc/virnetsocket.h: Generic
  sockets APIs
* tests/Makefile.am: Add socket test
* tests/virnetsockettest.c: New test case
* tests/testutils.c: Avoid overriding LIBVIRT_DEBUG settings
* tests/ssh.c: Dumb helper program for SSH tunnelling tests
cfg.mk
configure.ac
po/POTFILES.in
src/Makefile.am
src/rpc/virnetsocket.c [new file with mode: 0644]
src/rpc/virnetsocket.h [new file with mode: 0644]
tests/.gitignore
tests/Makefile.am
tests/ssh.c [new file with mode: 0644]
tests/testutils.c
tests/virnetsockettest.c [new file with mode: 0644]