Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mezzano support #173

Merged
merged 1 commit into from
Feb 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions set-timeouts.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ which means that the corresponding socket timeout value will not be
set."
(declare (ignorable usocket read-timeout write-timeout))
;; add other Lisps here if necessary
#+(or :sbcl :cmu :abcl)
#+(or :sbcl :cmu :abcl :mezzano)
(unless (eql read-timeout write-timeout)
(parameter-error "Read and write timeouts for socket must be equal."))
#+:clisp
Expand Down Expand Up @@ -82,6 +82,8 @@ set."
(warn "Unimplemented."))
#+:clasp
(warn "set-timeouts unimplemented.")
#-(or :clisp :allegro :openmcl :sbcl :lispworks :cmu :ecl :abcl :clasp)
#+:mezzano
(let ((connection (mezzano.network.tcp:tcp-stream-connection (usocket:socket usocket))))
(setf (mezzano.network.tcp:tcp-connection-timeout connection) read-timeout))
#-(or :clisp :allegro :openmcl :sbcl :lispworks :cmu :ecl :abcl :clasp :mezzano)
(not-implemented 'set-timeouts))