• D
    Introduce a generic object for using network sockets · 58b5b14e
    Daniel P. Berrange 提交于
    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
    58b5b14e
configure.ac 84.0 KB