[usocket-cvs] r188 - usocket/trunk/backend

ehuelsmann at common-lisp.net ehuelsmann at common-lisp.net
Sat Jan 20 12:48:04 UTC 2007


Author: ehuelsmann
Date: Sat Jan 20 07:48:03 2007
New Revision: 188

Modified:
   usocket/trunk/backend/cmucl.lisp
Log:
Add last-minute :element-type specification for trivial-sockets compatibility.

Modified: usocket/trunk/backend/cmucl.lisp
==============================================================================
--- usocket/trunk/backend/cmucl.lisp	(original)
+++ usocket/trunk/backend/cmucl.lisp	Sat Jan 20 07:48:03 2007
@@ -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)))
 



More information about the usocket-cvs mailing list