# File ex_taglist_with_udp_notify.rb, line 28 def notify(msg) # grab various parameters out of a configuration file ipaddress = @config['udp_listener_address'] port = @config['udp_listener_port'] begin sock = UDPSocket.open sock.connect(ipaddress, port) sock.puts msg sock.write "\0" sock.close rescue puts $! end end