5cca0cb remote: refactor code for building UNIX socket paths

Authored and Committed by berrange 6 years ago
    remote: refactor code for building UNIX socket paths
    
    The code for building UNIX socket paths will be getting more complex to
    cope with accessing various different daemons. Refactor it to eliminate
    the code duplication and isolation the logic for constructing paths.
    
    Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
    
        
file modified
+42 -27