diff options
author | Thomas White <taw@physics.org> | 2024-04-11 20:18:59 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-04-11 20:18:59 +0200 |
commit | 088177b637e6a91197db86d9ad93211cf544276f (patch) | |
tree | 8e2935bdd1938a2ed4638f372fb45897a98b9571 /README.md | |
parent | d931d96a0872140b570b9c5e1a5024cf2dfee000 (diff) |
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -39,8 +39,12 @@ Then, to receive OSC messages from within a Guile program: (do-stuff ...))) ``` -If the separate server thread doesn't work for you, there's also a blocking -server option: +To define a wildcard method, which matches everything, use `add-osc-wildcard` +instead of `add-osc-method`, leave the method name out but keep everything +else. + +If the separate server thread doesn't work in your application, there's also a +blocking server option: ``` (use-modules (open-sound-control server)) @@ -66,6 +70,14 @@ To send messages (with parameters): (osc-send osc-send-addr "/yet/another/method" 0.3 "hello") ``` +To send messages "from" a particular server, e.g. to communicate +bidirectionally via a TCP connection, use `osc-send-from`. For example: + +``` +(define srv (make-osc-server "osc.tcp://:8000")) +(define dst (make-osc-address "osc.tcp://192.168.178.35:8000")) +(osc-send-from dst srv "/method/name" 1 2 3) +``` Licence ------- |