# File ex_taglist_with_tcp_notify.rb, line 30 def notify (msg) ipaddress = @config['tcp_listener_address'] port = @config['tcp_listener_port'] begin sock = TCPSocket.new(ipaddress, port) sock.puts msg # format the array nicely sock.write "\0" # end each message with a null character sock.close rescue puts $! end end