• D
    Introduce generic RPC client objects · 434de30d
    Daniel P. Berrange 提交于
    To facilitate creation of new clients using XDR RPC services,
    pull alot of the remote driver code into a set of reusable
    objects.
    
     - virNetClient: Encapsulates a socket connection to a
       remote RPC server. Handles all the network I/O for
       reading/writing RPC messages. Delegates RPC encoding
       and decoding to the registered programs
    
     - virNetClientProgram: Handles processing and dispatch
       of RPC messages for a single RPC (program,version).
       A program can register to receive async events
       from a client
    
     - virNetClientStream: Handles generic I/O stream
       integration to RPC layer
    
    Each new client program now merely needs to define the list of
    RPC procedures & events it wants and their handlers. It does
    not need to deal with any of the network I/O functionality at
    all.
    434de30d
virnetclientstream.h 3.0 KB