Skip to content

Commit dbb4d19

Browse files
committed
Add Clasp support.
Patch courtesy of Christian Schafmeister.
1 parent fca85f7 commit dbb4d19

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

quicklisp.lisp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#:abcl
3434
#:allegro
3535
#:ccl
36+
#:clasp
3637
#:clisp
3738
#:cmucl
3839
#:cormanlisp
@@ -227,6 +228,23 @@
227228
(:reexport-from #:ccl
228229
#:make-socket))
229230

231+
232+
;;; CLASP
233+
234+
(define-implementation-package :clasp #:qlqs-clasp
235+
(:documentation "CLASP - http://github.com/drmeister/clasp")
236+
(:class clasp)
237+
(:prep
238+
(require 'sockets))
239+
(:intern #:host-network-address)
240+
(:reexport-from #:sb-bsd-sockets
241+
#:get-host-by-name
242+
#:host-ent-address
243+
#:socket-connect
244+
#:socket-make-stream
245+
#:inet-socket))
246+
247+
230248
;;; GNU CLISP
231249

232250
(define-implementation-package :clisp #:qlqs-clisp
@@ -381,6 +399,18 @@
381399
(:implementation ccl
382400
(qlqs-ccl:make-socket :remote-host host
383401
:remote-port port))
402+
(:implementation clasp
403+
(let* ((endpoint (qlqs-clasp:host-ent-address
404+
(qlqs-clasp:get-host-by-name host)))
405+
(socket (make-instance 'qlqs-clasp:inet-socket
406+
:protocol :tcp
407+
:type :stream)))
408+
(qlqs-clasp:socket-connect socket endpoint port)
409+
(qlqs-clasp:socket-make-stream socket
410+
:element-type '(unsigned-byte 8)
411+
:input t
412+
:output t
413+
:buffering :full)))
384414
(:implementation clisp
385415
(qlqs-clisp:socket-connect port host :element-type '(unsigned-byte 8)))
386416
(:implementation cmucl

0 commit comments

Comments
 (0)