summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-04-25 20:36:42 +0200
committerThomas White <taw@physics.org>2023-04-25 20:41:01 +0200
commit52c58f11955dac3185ea6c6c18776e428cbaf800 (patch)
treef0138dac143f2f00f63fca10e00ed91b3eaba733 /README.md
parent540c125ee6821cd84dd1e72f58c2ec1d39f2ac72 (diff)
Add blocking server
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 17 insertions, 2 deletions
diff --git a/README.md b/README.md
index 7361a3b..85f3b07 100644
--- a/README.md
+++ b/README.md
@@ -39,8 +39,23 @@ Then, to receive OSC messages from within a Guile program:
(do-stuff ...)))
```
-Or, to send messages (with parameters):
-
+If the separate server thread doesn't work for you, there's also a blocking
+server option:
+
+```
+(use-modules (open-sound-control server))
+
+(define s (make-osc-server "osc.udp://:7770"))
+
+(add-osc-method s ....)
+
+(osc-recv s) ;; Blocks for 1 second, or until a message is received
+```
+
+You can even have multiple blocking servers at once: `(osc-recv server1 server2)`.
+
+To send messages (with parameters):
+
```
(use-modules (open-sound-control client))