# File lib/eventmachine.rb, line 749
749:         def self::open_datagram_socket address, port, handler=nil
750:                 klass = if (handler and handler.is_a?(Class))
751:                         handler
752:                 else
753:                         Class.new( Connection ) {handler and include handler}
754:                 end
755: 
756:                 s = open_udp_socket address, port
757:                 c = klass.new s
758:                 @conns[s] = c
759:                 block_given? and yield c
760:                 c
761:         end