Mercurial > hg > plosc
diff prolog/plosc.pl @ 2:6c1ba6bf9f96
Added osc_split_address/3 to analyse address into host and port.
author | samer |
---|---|
date | Tue, 31 Jan 2012 15:53:45 +0000 |
parents | 16c621d40b68 |
children | 821f56d94b18 |
line wrap: on
line diff
--- a/prolog/plosc.pl Tue Jan 31 10:34:46 2012 +0000 +++ b/prolog/plosc.pl Tue Jan 31 15:53:45 2012 +0000 @@ -7,6 +7,7 @@ osc_now/2 % -Seconds:int, -Fraction:int , osc_now/1 % -TS:osc_timestamp , osc_mk_address/3 % +Host:atom, +Port:nonneg, -Ref:osc_addr + , osc_split_address/3 % +Ref:osc_addr, -Host:atom, -Port:nonneg , osc_is_address/1 % +Ref , osc_send/3 % +Ref, +Path:atom, +Args:list(osc_arg) , osc_send/4 % +Ref, +Path:atom, +Args:list(osc_arg), +Time:float @@ -42,6 +43,14 @@ % @param Port is the port number of the OSC receiver % @param Ref is an atom representing the address +%% osc_split_address(+Ref:osc_addr,-Host:atom, -Port:nonneg) is det. +% +% Deconstruct a BLOB atom representing an OSC destination. +% +% @param Ref is an atom representing the OSC address +% @param Host is the IP address of the OSC receiver +% @param Port is the port number of the OSC receiver + %% osc_is_address(+Ref) is semidet. % % Succeeds if Ref is an OSC address created by osc_mk_address/3