Method: Clamd::SocketManager#clamd_response_size

Defined in:
lib/clamd/socket_manager.rb

#clamd_response_size(command) ⇒ Object

Determines the number of bytes to be read for the command



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/clamd/socket_manager.rb', line 41

def clamd_response_size(command)
  case command
  when 'PING'
    4
  when 'RELOAD'
    9
  when 'SHUTDOWN'
    1
  else
    1024
  end
end