summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-04-11 20:18:59 +0200
committerThomas White <taw@physics.org>2024-04-11 20:18:59 +0200
commit088177b637e6a91197db86d9ad93211cf544276f (patch)
tree8e2935bdd1938a2ed4638f372fb45897a98b9571
parentd931d96a0872140b570b9c5e1a5024cf2dfee000 (diff)
Update README.md
-rw-r--r--README.md16
1 files changed, 14 insertions, 2 deletions
diff --git a/README.md b/README.md
index 85f3b07..a39aec6 100644
--- a/README.md
+++ b/README.md
@@ -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
-------