Changeset 44 for branches/home/psmith/restructure/src
- Timestamp:
- 01/19/07 00:11:08 (18 years ago)
- Location:
- branches/home/psmith/restructure/src
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/home/psmith/restructure/src/buffer/buffer.lisp ¶
r41 r44 160 160 (defmethod bytebuffer-write-vector((bb byte-buffer) vec) 161 161 :documentation "Returns number of bytes written to bytebuffer" 162 (format t "bytebuffer-write-vector - called with ~A ~A"bb vec)162 #+nio-debug (format t "bytebuffer-write-vector - called with ~A ~A"bb vec) 163 163 ; (if (> (remaining bb) 0) 164 164 ; 0 … … 166 166 ; (clear bb) 167 167 (let ((bytes-written (cffi:mem-write-vector vec (buffer-buf bb) :unsigned-char (length vec) (buffer-position bb)))) 168 (format t "bytebuffer-write-vector - byteswritten: ~A~%" bytes-written)168 #+nio-debug (format t "bytebuffer-write-vector - byteswritten: ~A~%" bytes-written) 169 169 (inc-position bb bytes-written) 170 170 bytes-written))) -
TabularUnified branches/home/psmith/restructure/src/compat/nio-compat-package.lisp ¶
r39 r44 34 34 ;;concurrent-queue 35 35 concurrent-queue add take 36 37 ;;utils 38 get-readable-time 36 39 )) -
TabularUnified branches/home/psmith/restructure/src/compat/nio-compat.asd ¶
r39 r44 8 8 (:file "errno" :depends-on ("nio-compat-package")) 9 9 (:file "concurrent-queue" :depends-on ("nio-compat-package")) 10 (:file "utils" :depends-on ("nio-compat-package")) 10 11 ) 11 12 -
TabularUnified branches/home/psmith/restructure/src/io/async-fd.lisp ¶
r41 r44 111 111 (defun read-more (state-machine) 112 112 (with-slots (foreign-read-buffer read-fd) state-machine 113 (format t "read-more called with ~A~%" state-machine)113 #+nio-debug (format t "read-more called with ~A~%" state-machine) 114 114 115 115 #+nio-debug (format t "read-more - calling read() into ~A~%" foreign-read-buffer) -
TabularUnified branches/home/psmith/restructure/src/io/nio-server.lisp ¶
r41 r44 91 91 (handler-bind ((poll-error #'(lambda (cond) 92 92 (declare (ignore cond)) 93 (format t "Poll-error , exiting..~%")93 (format t "Poll-error (errno ~A), exiting..~%" (get-errno)) 94 94 (throw 'poll-error-exit nil)))) 95 95 -
TabularUnified branches/home/psmith/restructure/src/protocol/yarpc/yarpc-packet-factory.lisp ¶
r37 r44 60 60 61 61 (defmethod write-bytes((packet call-method-packet) buf) 62 (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf) 63 ; (nio-buffer:flip buf) 62 #+nio-debug (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf) 64 63 (nio-buffer:bytebuffer-write-vector buf #(#x0)) 65 64 (nio-buffer:bytebuffer-write-string buf (call-string packet)) 66 (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf) ) 65 #+nio-debug (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf) 66 ) 67 67 68 68 … … 78 78 79 79 (defmethod write-bytes((packet method-response-packet) buf) 80 (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf)80 #+nio-debug (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf) 81 81 (nio-buffer:bytebuffer-write-vector buf #(#x1)) 82 82 (nio-buffer:bytebuffer-write-string buf (write-to-string (response packet))) 83 (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf) ) 83 #+nio-debug (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf) 84 ) -
TabularUnified branches/home/psmith/restructure/src/statemachine/state-machine.lisp ¶
r41 r44 58 58 (with-slots (foreign-read-buffer) sm 59 59 (let ((incoming-packet (get-packet (get-packet-factory sm) foreign-read-buffer))) 60 (format t " state-machine::process-read - incoming packet: ~A~%"incoming-packet)60 (format t "~A state-machine::process-read - incoming packet: ~A~%" (nio-compat:get-readable-time) incoming-packet) 61 61 (when incoming-packet 62 62 (when (not (process-incoming-packet sm incoming-packet)) … … 68 68 (with-slots (foreign-write-buffer) sm 69 69 (let ((outgoing-packet (process-outgoing-packet sm))) 70 (format t " state-machine::process-write - outgoing packet: ~A~%"outgoing-packet)70 (format t "~A state-machine::process-write - outgoing packet: ~A~%" (nio-compat:get-readable-time) outgoing-packet) 71 71 (when outgoing-packet (write-bytes outgoing-packet foreign-write-buffer))))) 72 72
Note: See TracChangeset
for help on using the changeset viewer.