Class: Dalli::Server::USocket

Inherits:
UNIXSocket
  • Object
show all
Defined in:
lib/dalli/socket.rb,
lib/dalli/socket.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ USocket

Returns a new instance of USocket.

Raises:



155
156
157
# File 'lib/dalli/socket.rb', line 155

def initialize(*args)
  raise Dalli::DalliError, "Unix sockets are not supported on Windows platform."
end

Instance Method Details

#readfull(count) ⇒ Object



161
162
163
164
165
166
167
168
# File 'lib/dalli/socket.rb', line 161

def readfull(count)
  value = ''
  loop do
    value << read(count - value.bytesize)
    break if value.bytesize == count
  end
  value
end