Class: Dalli::Server::USocket
- Inherits:
-
UNIXSocket
- Object
- UNIXSocket
- Dalli::Server::USocket
- Defined in:
- lib/dalli/socket.rb,
lib/dalli/socket.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ USocket
constructor
A new instance of USocket.
- #readfull(count) ⇒ Object
Constructor Details
#initialize(*args) ⇒ USocket
Returns a new instance of USocket.
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 |