Class: XenStore::Connection::UnixSocketConnection

Inherits:
PacketConnection show all
Defined in:
lib/xsrb/connection.rb

Overview

A PacketConnection implementation which communicates with XenStored over a UNIX socket.

Instance Method Summary collapse

Methods inherited from PacketConnection

#recv, #send

Constructor Details

#initialize(path = nil) ⇒ UnixSocketConnection



43
44
45
46
47
# File 'lib/xsrb/connection.rb', line 43

def initialize(path = nil)
  @path = path || XenStore::Utils.unix_socket_path
  transport = XenStore::Transport::UnixSocketTransport.new @path
  super(transport)
end