call-based functions (join, part, reconnect, any user defined function) use a return type of ow_zone_call_resp() and cast-based functions (disconnect, tick) have a return type of ow_zone_cast_resp() since it doesn't make sense to reply to a non-existent caller.
Notable changes:
'@' is now send to match the internal call structure used elsewhere. @zone is now broadcast. Such that all instances of:
{{{'@', IDs}, {MsgType, Msg}}, State} are now {{send, IDs}, {MsgType, Msg}, State}
and
{{{@zone, {MsgType, Msg}}, State} are now {broadcast, {MsgType, Msg}, State}
This implements #40
Much like
gen_server:call
andgen_server:cast
there are two types of callbacks now.call-based functions (join, part, reconnect, any user defined function) use a return type of
ow_zone_call_resp()
and cast-based functions (disconnect, tick) have a return type ofow_zone_cast_resp()
since it doesn't make sense to reply to a non-existent caller.Notable changes:
'@'
is nowsend
to match the internal call structure used elsewhere.@zone
is nowbroadcast
. Such that all instances of:{{{'@', IDs}, {MsgType, Msg}}, State}
are now{{send, IDs}, {MsgType, Msg}, State}
and{{{@zone, {MsgType, Msg}}, State}
are now{broadcast, {MsgType, Msg}, State}