Guest User

Untitled

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. (def (recv)
  2. (let ([data ""]
  3. [chunk #f])
  4. (while (string-find? data "\n")
  5. (set! chunk (read-char (socket-intput sock)))
  6. (if (null? chunk)
  7. (error `lol "Conection Error")
  8. (string-append! data chunk)))
  9. (string-delete data "\r")))
Add Comment
Please, Sign In to add comment