Skip to content

Commit

Permalink
Adding ECL implementation of set-timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigamonkey committed Nov 20, 2012
1 parent 2d54959 commit 1fafda5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions set-timeouts.lisp
Expand Up @@ -48,6 +48,12 @@ set."
#+:clisp
(when write-timeout
(socket:socket-options (usocket:socket usocket) :SO-SNDTIMEO write-timeout))
#+:ecl
(when write-timeout
(setf (sb-bsd-sockets:sockopt-send-timeout (usocket:socket usocket)) write-timeout))
#+:ecl
(when read-timeout
(setf (sb-bsd-sockets:sockopt-receive-timeout (usocket:socket usocket)) read-timeout))
#+:openmcl
(when read-timeout
(setf (ccl:stream-input-timeout (usocket:socket usocket)) read-timeout))
Expand All @@ -61,6 +67,5 @@ set."
#+:cmu
(setf (lisp::fd-stream-timeout (usocket:socket-stream usocket))
(coerce read-timeout 'integer))
#-(or :clisp :allegro :openmcl :sbcl :lispworks :cmu)
#-(or :clisp :ecl :openmcl :sbcl :cmu)
(not-implemented 'set-timeouts))

0 comments on commit 1fafda5

Please sign in to comment.