Class: Celluloid::IO::UDPSocket

Inherits:
Object
  • Object
show all
Defined in:
lib/bettercap/monkey/celluloid/io/udp_socket.rb

Instance Method Summary collapse

Constructor Details

#initialize(address_family = ::Socket::AF_INET) ⇒ UDPSocket

Returns a new instance of UDPSocket.



18
19
20
21
22
23
# File 'lib/bettercap/monkey/celluloid/io/udp_socket.rb', line 18

def initialize(address_family = ::Socket::AF_INET)
  @socket = ::UDPSocket.new(address_family)
rescue Errno::EMFILE
  sleep 0.5
  retry
end