Created
September 15, 2013 00:19
-
-
Save shriphani/6566930 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; Soli Deo Gloria | |
| ;;;; Author: [email protected] | |
| ;;;; ZephyrOS client in Racket | |
| #lang racket | |
| (require racket/place) | |
| (require (planet shawnpresser/racket-unix-sockets:1:0)) | |
| (define zephyros-in-ch (place | |
| listen-channel | |
| (display (place-channel-get zephyros-in-ch)))) | |
| (define *zephyros-socket* "/tmp/zephyros.sock") | |
| (define (listen-to-zephyros) | |
| (define (inner-loop listener) | |
| (printf "listened: ~a" listener) | |
| (inner-loop)) | |
| (let ((listener (unix-socket-listen | |
| *zephyros-socket* 5))) | |
| (inner-loop listener))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment