diff options
author | Thomas White <taw@physics.org> | 2023-04-25 20:36:42 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-04-25 20:41:01 +0200 |
commit | 52c58f11955dac3185ea6c6c18776e428cbaf800 (patch) | |
tree | f0138dac143f2f00f63fca10e00ed91b3eaba733 /README.md | |
parent | 540c125ee6821cd84dd1e72f58c2ec1d39f2ac72 (diff) |
Add blocking server
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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)) |