Class Celluloid::IO::UDPSocket
In: lib/celluloid/io/udp_socket.rb
Parent: Socket

UDPSockets with combined blocking and evented support

Methods

new   recvfrom   wait_readable  

Public Class methods

@overload initialize(address_family)

  Opens a new udp socket using address_family.
  @param address_family [Numeric]

@overload initialize(socket)

  Wraps an already existing udp socket.
  @param socket [::UDPSocket]

Public Instance methods

Receives up to maxlen bytes from socket. flags is zero or more of the MSG_ options. The first element of the results, mesg, is the data received. The second element, sender_addrinfo, contains protocol-specific address information of the sender.

Wait until the socket is readable

[Validate]