Skip to content

Commit

Permalink
Add last-minute :element-type specification for trivial-sockets compa…
Browse files Browse the repository at this point in the history
…tibility.
  • Loading branch information
ehuelsmann committed Jan 20, 2007
1 parent 9045937 commit bce22bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/cmucl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@
(host-to-hbo host)))))))
(make-stream-server-socket server-sock :element-type element-type)))

(defmethod socket-accept ((usocket stream-server-usocket))
(defmethod socket-accept ((usocket stream-server-usocket) &key element-type)
(let* ((sock (ext:accept-tcp-connection (socket usocket)))
(stream (sys:make-fd-stream sock :input t :output t
:element-type (element-type usocket)
:element-type (or element-type
(element-type usocket))
:buffering :full)))
(make-stream-socket :socket sock :stream stream)))

Expand Down

0 comments on commit bce22bc

Please sign in to comment.