local demo of watchdog

# set up an ad hoc UDP server
target@machine> M=fun({_Proto,_,_IP,_PortNo,Payload})->length(Payload) end.
target@machine> F=fun(G)->receive X -> erlang:display(M(X)), G(G) end end.
target@machine> L=fun()->{ok,Sck}=gen_udp:open(16#BEBE,[{active,true}]),F(F)end.
target@machine> register(udp_echo,spawn(L)).

# set up the ad hoc UDP server as a subscriber
target@machine> watchdog:start().
target@machine> watchdog:add_send_subscriber(udp,"localhost",16#bebe,"pwd").


example usage of prfDog;

# set up a prfDog called "foo" on the host. The data will wind up in the
# callback module dogConsumer.

host@machine> prf:start (foo, node(), dogConsumer, node()).
host@machine> prf:config(foo, prfDog, {port,56669}).
host@machine> prf:config(foo, prfDog, {secret,"passwd"}).

# send data to "foo" on localhost over UDP

target@machine> watchdog:start().
target@machine> watchdog:add_send_subscriber(udp,"127.0.0.1",56669,"passwd").
