Ignore:
Timestamp:
01/06/07 06:08:44 (18 years ago)
Author:
psmith
Message:

yarpc: allow return types other than string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/home/psmith/restructure/src/protocol/yarpc/yarpc-state-machine.lisp

    r28 r29  
    5050    (let ((fn-result (execute-call (sb-ext:octets-to-string (get-string foreign-read-buffer) :external-format :ascii))))
    5151      (format t "process-read - function result: ~A~%" fn-result)
    52       (nio-buffer:bytebuffer-write-string foreign-write-buffer fn-result 0 :utf-8)
     52      (nio-buffer:bytebuffer-write-string foreign-write-buffer (write-to-string fn-result) 0 :utf-8)
    5353      (close-sm sm))))
    5454
     
    5959    (apply (first rpc-call-list) (rest rpc-call-list))))
    6060
     61(defun test-rpc-list()
     62  (list 3 "as" 's (code-char #x2211)))
    6163
    62 (defun test-rpc(a b c)
     64(defun test-rpc-string(a b c)
    6365  (format nil "response - ~A ~A ~A ~A~%" a b c (code-char #x2211)))
Note: See TracChangeset for help on using the changeset viewer.