|
|
@ -4,7 +4,7 @@
|
|
|
|
(ql:quickload :cl-sipc))
|
|
|
|
(ql:quickload :cl-sipc))
|
|
|
|
|
|
|
|
|
|
|
|
(defparameter *socket-file* "sipc.socket")
|
|
|
|
(defparameter *socket-file* "sipc.socket")
|
|
|
|
(defparameter *respond* t)
|
|
|
|
(defparameter *respond* t) ;; should the server echo responses to client?
|
|
|
|
|
|
|
|
|
|
|
|
(when (probe-file *socket-file*)
|
|
|
|
(when (probe-file *socket-file*)
|
|
|
|
(delete-file *socket-file*))
|
|
|
|
(delete-file *socket-file*))
|
|
|
@ -25,7 +25,7 @@
|
|
|
|
(when *respond*
|
|
|
|
(when *respond*
|
|
|
|
(format t
|
|
|
|
(format t
|
|
|
|
" -> ~a~%"
|
|
|
|
" -> ~a~%"
|
|
|
|
(sipc:respond
|
|
|
|
(sipc:respond ;; send the response as a formatted string
|
|
|
|
(if (eql type :binary)
|
|
|
|
(if (eql type :binary)
|
|
|
|
(format nil "~a" (sipc:pointer-to-array message))
|
|
|
|
(format nil "~a" (sipc:pointer-to-array message))
|
|
|
|
(format nil "~a" message)))))
|
|
|
|
(format nil "~a" message)))))
|
|
|
|