Mercurial > hg > plosc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:16c621d40b68 | 2:6c1ba6bf9f96 |
---|---|
5 | 5 |
6 :- module(plosc, [ | 6 :- module(plosc, [ |
7 osc_now/2 % -Seconds:int, -Fraction:int | 7 osc_now/2 % -Seconds:int, -Fraction:int |
8 , osc_now/1 % -TS:osc_timestamp | 8 , osc_now/1 % -TS:osc_timestamp |
9 , osc_mk_address/3 % +Host:atom, +Port:nonneg, -Ref:osc_addr | 9 , osc_mk_address/3 % +Host:atom, +Port:nonneg, -Ref:osc_addr |
10 , osc_split_address/3 % +Ref:osc_addr, -Host:atom, -Port:nonneg | |
10 , osc_is_address/1 % +Ref | 11 , osc_is_address/1 % +Ref |
11 , osc_send/3 % +Ref, +Path:atom, +Args:list(osc_arg) | 12 , osc_send/3 % +Ref, +Path:atom, +Args:list(osc_arg) |
12 , osc_send/4 % +Ref, +Path:atom, +Args:list(osc_arg), +Time:float | 13 , osc_send/4 % +Ref, +Path:atom, +Args:list(osc_arg), +Time:float |
13 , osc_send_from/5 % +Ref, +Ref, +Path:atom, +Args:list(osc_arg), +Time:float | 14 , osc_send_from/5 % +Ref, +Ref, +Path:atom, +Args:list(osc_arg), +Time:float |
14 , osc_mk_server/2 % +Port:nonneg, -Ref | 15 , osc_mk_server/2 % +Port:nonneg, -Ref |
39 % Construct a BLOB atom representing an OSC destination. | 40 % Construct a BLOB atom representing an OSC destination. |
40 % | 41 % |
41 % @param Host is the hostname or IP address of the OSC receiver | 42 % @param Host is the hostname or IP address of the OSC receiver |
42 % @param Port is the port number of the OSC receiver | 43 % @param Port is the port number of the OSC receiver |
43 % @param Ref is an atom representing the address | 44 % @param Ref is an atom representing the address |
45 | |
46 %% osc_split_address(+Ref:osc_addr,-Host:atom, -Port:nonneg) is det. | |
47 % | |
48 % Deconstruct a BLOB atom representing an OSC destination. | |
49 % | |
50 % @param Ref is an atom representing the OSC address | |
51 % @param Host is the IP address of the OSC receiver | |
52 % @param Port is the port number of the OSC receiver | |
44 | 53 |
45 %% osc_is_address(+Ref) is semidet. | 54 %% osc_is_address(+Ref) is semidet. |
46 % | 55 % |
47 % Succeeds if Ref is an OSC address created by osc_mk_address/3 | 56 % Succeeds if Ref is an OSC address created by osc_mk_address/3 |
48 | 57 |