The jsonrpc Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The jsonrpc Reference Manual

This is the jsonrpc Reference Manual, version 0.3.2, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 04:06:12 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

jsonrpc

Quicklisp dist Build Status Coverage Status

JSON-RPC 2.0 server/client for Common Lisp.

Usage

;; server
(defvar *server* (jsonrpc:make-server))
(jsonrpc:expose *server* "sum" (lambda (args) (reduce #'+ args)))

(jsonrpc:server-listen *server* :port 50879 :mode :tcp)
;; client
(defvar *client* (jsonrpc:make-client))
(jsonrpc:client-connect *client* :url "http://127.0.0.1:50879" :mode :tcp)
(jsonrpc:call *client* "sum" '(10 20))
;=> 30

;; Calling with :timeout option
(jsonrpc:call *client* "sum" '(10 20) :timeout 1.0)
;=> 30

Author

Copyright

Copyright (c) 2016 Eitaro Fukamachi (e.arrows@gmail.com)

License

Licensed under the BSD 2-Clause License.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Next: , Previous: , Up: Systems   [Contents][Index]

2.1 jsonrpc

Author

Eitaro Fukamachi

License

BSD 2-Clause

Description

JSON-RPC 2.0 server/client implementation

Version

0.3.2

Dependency

jsonrpc/main (system)

Source

jsonrpc.asd (file)


Next: , Previous: , Up: Systems   [Contents][Index]

2.2 jsonrpc/main

Dependencies
Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Next: , Previous: , Up: Systems   [Contents][Index]

2.3 jsonrpc/class

Dependencies
Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Next: , Previous: , Up: Systems   [Contents][Index]

2.4 jsonrpc/mapper

Dependencies
Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Next: , Previous: , Up: Systems   [Contents][Index]

2.5 jsonrpc/transport/interface

Dependencies
Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Next: , Previous: , Up: Systems   [Contents][Index]

2.6 jsonrpc/connection

Dependencies
Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Next: , Previous: , Up: Systems   [Contents][Index]

2.7 jsonrpc/request-response

Dependencies
Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Next: , Previous: , Up: Systems   [Contents][Index]

2.8 jsonrpc/utils

Dependencies
Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Previous: , Up: Systems   [Contents][Index]

2.9 jsonrpc/errors

Dependency

yason

Source

jsonrpc.asd (file)

Component

lisp.lisp (file)


Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 jsonrpc.asd

Location

jsonrpc.asd

Systems

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 jsonrpc/main/lisp.lisp

Parent

jsonrpc/main (system)

Location

main.lisp

Packages

jsonrpc

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 jsonrpc/class/lisp.lisp

Parent

jsonrpc/class (system)

Location

class.lisp

Packages

jsonrpc/class

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.4 jsonrpc/mapper/lisp.lisp

Parent

jsonrpc/mapper (system)

Location

mapper.lisp

Packages

jsonrpc/mapper

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.5 jsonrpc/transport/interface/lisp.lisp

Parent

jsonrpc/transport/interface (system)

Location

transport/interface.lisp

Packages

jsonrpc/transport/interface

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.6 jsonrpc/connection/lisp.lisp

Parent

jsonrpc/connection (system)

Location

connection.lisp

Packages

jsonrpc/connection

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.7 jsonrpc/request-response/lisp.lisp

Parent

jsonrpc/request-response (system)

Location

request-response.lisp

Packages

jsonrpc/request-response

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.8 jsonrpc/utils/lisp.lisp

Parent

jsonrpc/utils (system)

Location

utils.lisp

Packages

jsonrpc/utils

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.9 jsonrpc/errors/lisp.lisp

Parent

jsonrpc/errors (system)

Location

errors.lisp

Packages

jsonrpc/errors

Exported Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

4.1 jsonrpc

Source

lisp.lisp (file)

Nickname

jsonrpc/main

Use List
Exported Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

4.2 jsonrpc/class

Source

lisp.lisp (file)

Use List

common-lisp

Used By List

jsonrpc

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

4.3 jsonrpc/mapper

Source

lisp.lisp (file)

Use List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

4.4 jsonrpc/transport/interface

Source

lisp.lisp (file)

Use List

common-lisp

Used By List

jsonrpc

Exported Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

4.5 jsonrpc/connection

jsonrpc/connection provides a class ‘connection’ for holding data of each connections, like inbox and outbox.

Source

lisp.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

4.6 jsonrpc/request-response

Source

lisp.lisp (file)

Use List
Used By List

jsonrpc

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

4.7 jsonrpc/utils

Source

lisp.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Previous: , Up: Packages   [Contents][Index]

4.8 jsonrpc/errors

Source

lisp.lisp (file)

Use List

common-lisp

Used By List
Exported Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Special variables

Special Variable: *connection*
Package

jsonrpc/connection

Source

lisp.lisp (file)

Special Variable: *default-timeout*
Package

jsonrpc/class

Source

lisp.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Functions

Function: add-message-to-outbox CONNECTION MESSAGE
Package

jsonrpc/connection

Source

lisp.lisp (file)

Function: call-async-to FROM TO METHOD &optional PARAMS CALLBACK ERROR-CALLBACK
Package

jsonrpc/class

Source

lisp.lisp (file)

Function: call-to FROM TO METHOD &optional PARAMS &rest OPTIONS
Package

jsonrpc/class

Source

lisp.lisp (file)

Function: client-connect CLIENT &rest INITARGS &key MODE &allow-other-keys
Package

jsonrpc/class

Source

lisp.lisp (file)

Function: client-disconnect CLIENT
Package

jsonrpc/class

Source

lisp.lisp (file)

Function: find-mode-class MODE
Package

jsonrpc/utils

Source

lisp.lisp (file)

Function: make-client ()
Package

jsonrpc

Source

lisp.lisp (file)

Function: make-error-response &key ID CODE MESSAGE DATA
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: make-id &optional LENGTH
Package

jsonrpc/utils

Source

lisp.lisp (file)

Function: make-request &key (METHOD METHOD) (PARAMS PARAMS) (ID ID)
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: make-response &key (ERROR ERROR) (RESULT RESULT) (ID ID)
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: make-server ()
Package

jsonrpc

Source

lisp.lisp (file)

Function: notify-to FROM TO METHOD &optional PARAMS
Package

jsonrpc/class

Source

lisp.lisp (file)

Function: parse-message INPUT
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: random-port ()

Return a port number not in use from 50000 to 60000.

Package

jsonrpc/utils

Source

lisp.lisp (file)

Function: receive-message FROM CONNECTION
Package

jsonrpc/class

Source

lisp.lisp (file)

Function: request-id INSTANCE
Function: (setf request-id) VALUE INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: request-method INSTANCE
Function: (setf request-method) VALUE INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: request-params INSTANCE
Function: (setf request-params) VALUE INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: response-error INSTANCE
Function: (setf response-error) VALUE INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: response-error-code RESPONSE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: response-error-message RESPONSE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: response-id INSTANCE
Function: (setf response-id) VALUE INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: response-result INSTANCE
Function: (setf response-result) VALUE INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: server-listen SERVER &rest INITARGS &key MODE &allow-other-keys
Package

jsonrpc/class

Source

lisp.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Generic functions

Generic Function: add-message-to-queue CONNECTION MESSAGE
Package

jsonrpc/connection

Source

lisp.lisp (file)

Methods
Method: add-message-to-queue (CONNECTION connection) (MESSAGES list)
Method: add-message-to-queue (CONNECTION connection) (MESSAGE request)
Method: add-message-to-queue (CONNECTION connection) (MESSAGE response)
Generic Function: call JSONRPC METHOD &optional PARAMS &rest OPTIONS
Package

jsonrpc/class

Source

lisp.lisp (file)

Methods
Method: call (CLIENT client) METHOD &optional PARAMS &rest OPTIONS
Generic Function: call-async JSONRPC METHOD &optional PARAMS CALLBACK ERROR-CALLBACK
Package

jsonrpc/class

Source

lisp.lisp (file)

Methods
Method: call-async (CLIENT client) METHOD &optional PARAMS CALLBACK ERROR-CALLBACK
Method: call-async (SERVER server) METHOD &optional PARAMS CALLBACK ERROR-CALLBACK
Generic Function: clear-methods OBJECT
Package

jsonrpc/mapper

Source

lisp.lisp (file)

Methods
Method: clear-methods (OBJECT exposable)
Generic Function: connection-outbox OBJECT
Generic Function: (setf connection-outbox) NEW-VALUE OBJECT
Package

jsonrpc/connection

Methods
Method: connection-outbox (CONNECTION connection)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf connection-outbox) NEW-VALUE (CONNECTION connection)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: connection-request-callback OBJECT
Generic Function: (setf connection-request-callback) NEW-VALUE OBJECT
Package

jsonrpc/connection

Methods
Method: connection-request-callback (CONNECTION connection)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf connection-request-callback) NEW-VALUE (CONNECTION connection)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: connection-request-queue OBJECT
Generic Function: (setf connection-request-queue) NEW-VALUE OBJECT
Package

jsonrpc/connection

Methods
Method: connection-request-queue (CONNECTION connection)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf connection-request-queue) NEW-VALUE (CONNECTION connection)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: connection-socket OBJECT
Generic Function: (setf connection-socket) NEW-VALUE OBJECT
Package

jsonrpc/connection

Methods
Method: connection-socket (CONNECTION connection)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf connection-socket) NEW-VALUE (CONNECTION connection)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: dispatch OBJECT MESSAGE
Package

jsonrpc/mapper

Source

lisp.lisp (file)

Methods
Method: dispatch (OBJECT exposable) (REQUEST request)
Method: dispatch (OBJECT exposable) (REQUEST request) around
Generic Function: expose OBJECT METHOD-NAME FUNCTION
Package

jsonrpc/mapper

Source

lisp.lisp (file)

Methods
Method: expose (OBJECT exposable) METHOD-NAME FUNCTION
Generic Function: jsonrpc-error-code CONDITION
Generic Function: (setf jsonrpc-error-code) NEW-VALUE CONDITION
Package

jsonrpc/errors

Methods
Method: jsonrpc-error-code (CONDITION jsonrpc-error)
Method: (setf jsonrpc-error-code) NEW-VALUE (CONDITION jsonrpc-error)
Source

lisp.lisp (file)

Generic Function: jsonrpc-error-message CONDITION
Generic Function: (setf jsonrpc-error-message) NEW-VALUE CONDITION
Package

jsonrpc/errors

Methods
Method: jsonrpc-error-message (CONDITION jsonrpc-error)
Method: (setf jsonrpc-error-message) NEW-VALUE (CONDITION jsonrpc-error)
Source

lisp.lisp (file)

Generic Function: jsonrpc-transport OBJECT
Generic Function: (setf jsonrpc-transport) NEW-VALUE OBJECT
Package

jsonrpc/class

Methods
Method: jsonrpc-transport (JSONRPC jsonrpc)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf jsonrpc-transport) NEW-VALUE (JSONRPC jsonrpc)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: notify JSONRPC METHOD &optional PARAMS
Package

jsonrpc/class

Source

lisp.lisp (file)

Methods
Method: notify (CLIENT client) METHOD &optional PARAMS
Method: notify (SERVER server) METHOD &optional PARAMS
Generic Function: notify-async JSONRPC METHOD &optional PARAMS
Package

jsonrpc/class

Source

lisp.lisp (file)

Methods
Method: notify-async (CLIENT client) METHOD &optional PARAMS
Method: notify-async (SERVER server) METHOD &optional PARAMS
Generic Function: process-request CONNECTION REQUEST
Package

jsonrpc/connection

Source

lisp.lisp (file)

Methods
Method: process-request (CONNECTION connection) (REQUESTS list)
Method: process-request (CONNECTION connection) (REQUEST request)
Generic Function: receive-message-using-transport TRANSPORT FROM
Package

jsonrpc/transport/interface

Source

lisp.lisp (file)

Generic Function: register-method OBJECT METHOD-NAME FUNCTION
Package

jsonrpc/mapper

Source

lisp.lisp (file)

Methods
Method: register-method (OBJECT exposable) METHOD-NAME FUNCTION
Generic Function: run-processing-loop TRANSPORT CONNECTION
Package

jsonrpc/transport/interface

Source

lisp.lisp (file)

Methods
Method: run-processing-loop (TRANSPORT transport) CONNECTION
Generic Function: run-reading-loop TRANSPORT CONNECTION
Package

jsonrpc/transport/interface

Source

lisp.lisp (file)

Methods
Method: run-reading-loop (TRANSPORT transport) CONNECTION
Generic Function: send-message TO CONNECTION MESSAGE
Package

jsonrpc/class

Source

lisp.lisp (file)

Methods
Method: send-message TO CONNECTION MESSAGE
Generic Function: send-message-using-transport TRANSPORT TO MESSAGE
Package

jsonrpc/transport/interface

Source

lisp.lisp (file)

Generic Function: start-client TRANSPORT
Package

jsonrpc/transport/interface

Source

lisp.lisp (file)

Generic Function: start-server TRANSPORT
Package

jsonrpc/transport/interface

Source

lisp.lisp (file)

Generic Function: transport-connection OBJECT
Generic Function: (setf transport-connection) NEW-VALUE OBJECT
Package

jsonrpc/transport/interface

Methods
Method: transport-connection (TRANSPORT transport)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf transport-connection) NEW-VALUE (TRANSPORT transport)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: transport-message-callback OBJECT
Generic Function: (setf transport-message-callback) NEW-VALUE OBJECT
Package

jsonrpc/transport/interface

Methods
Method: transport-message-callback (TRANSPORT transport)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf transport-message-callback) NEW-VALUE (TRANSPORT transport)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: transport-threads OBJECT
Generic Function: (setf transport-threads) NEW-VALUE OBJECT
Package

jsonrpc/transport/interface

Methods
Method: transport-threads (TRANSPORT transport)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf transport-threads) NEW-VALUE (TRANSPORT transport)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: wait-for-ready PROCESS-WAIT
Package

jsonrpc/connection

Source

lisp.lisp (file)

Methods
Method: wait-for-ready (PROCESS-WAIT process-wait)

Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.4 Conditions

Condition: jsonrpc-callback-error ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)

Condition: jsonrpc-error ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

error (condition)

Direct subclasses
Direct methods
Direct slots
Slot: code
Initargs

:code

Initform

(quote -1)

Readers

jsonrpc-error-code (generic function)

Writers

(setf jsonrpc-error-code) (generic function)

Slot: message
Initargs

:message

Initform

(quote "")

Readers

jsonrpc-error-message (generic function)

Writers

(setf jsonrpc-error-message) (generic function)

Condition: jsonrpc-internal-error ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)

Direct slots
Slot: code
Initargs

:code

Initform

(quote -32603)

Slot: message
Initargs

:message

Initform

(quote "internal error")

Condition: jsonrpc-invalid-params ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)

Direct slots
Slot: code
Initargs

:code

Initform

(quote -32602)

Slot: message
Initargs

:message

Initform

(quote "invalid params")

Condition: jsonrpc-invalid-request ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)

Direct slots
Slot: code
Initargs

:code

Initform

(quote -32600)

Slot: message
Initargs

:message

Initform

(quote "invalid request")

Condition: jsonrpc-invalid-response ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)

Direct slots
Slot: code
Initargs

:code

Initform

(quote -32000)

Slot: message
Initargs

:message

Initform

(quote "invalid response")

Condition: jsonrpc-method-not-found ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)

Direct slots
Slot: code
Initargs

:code

Initform

(quote -32601)

Slot: message
Initargs

:message

Initform

(quote "method not found")

Condition: jsonrpc-parse-error ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)

Direct slots
Slot: code
Initargs

:code

Initform

(quote -32700)

Slot: message
Initargs

:message

Initform

(quote "parse error")

Condition: jsonrpc-server-error ()
Package

jsonrpc/errors

Source

lisp.lisp (file)

Direct superclasses

jsonrpc-error (condition)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.5 Structures

Structure: request ()
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods
Direct slots
Slot: method
Readers

request-method (function)

Writers

(setf request-method) (function)

Slot: params
Readers

request-params (function)

Writers

(setf request-params) (function)

Slot: id
Readers

request-id (function)

Writers

(setf request-id) (function)

Structure: response ()
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods
Direct slots
Slot: error
Readers

response-error (function)

Writers

(setf response-error) (function)

Slot: result
Readers

response-result (function)

Writers

(setf response-result) (function)

Slot: id
Readers

response-id (function)

Writers

(setf response-id) (function)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.6 Classes

Class: client ()
Package

jsonrpc/class

Source

lisp.lisp (file)

Direct superclasses

jsonrpc (class)

Direct methods
Class: connection ()
Package

jsonrpc/connection

Source

lisp.lisp (file)

Direct superclasses
Direct methods
Direct slots
Slot: socket
Initargs

:socket

Readers

connection-socket (generic function)

Writers

(setf connection-socket) (generic function)

Slot: request-callback
Initargs

:request-callback

Readers

connection-request-callback (generic function)

Writers

(setf connection-request-callback) (generic function)

Slot: request-queue
Initform

(make-instance (quote chanl:unbounded-channel))

Readers

connection-request-queue (generic function)

Writers

(setf connection-request-queue) (generic function)

Slot: response-map
Initform

(make-hash-table :test (quote equal))

Slot: response-lock
Initform

(bordeaux-threads:make-recursive-lock "jsonrpc/connection response-lock")

Slot: response-callback
Initform

(make-hash-table :test (quote equal))

Slot: outbox
Initform

(make-instance (quote chanl:unbounded-channel))

Readers

connection-outbox (generic function)

Writers

(setf connection-outbox) (generic function)

Class: exposable ()
Package

jsonrpc/mapper

Source

lisp.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses

jsonrpc (class)

Direct methods
Direct slots
Slot: mapper
Initform

(make-hash-table :test (quote equal))

Readers

exposable-mapper (generic function)

Writers

(setf exposable-mapper) (generic function)

Class: server ()
Package

jsonrpc/class

Source

lisp.lisp (file)

Direct superclasses

jsonrpc (class)

Direct methods
Class: transport ()
Package

jsonrpc/transport/interface

Source

lisp.lisp (file)

Direct superclasses

event-emitter (class)

Direct methods
Direct slots
Slot: message-callback
Initargs

:message-callback

Readers

transport-message-callback (generic function)

Writers

(setf transport-message-callback) (generic function)

Slot: connection
Readers

transport-connection (generic function)

Writers

(setf transport-connection) (generic function)

Slot: threads
Initform

(quote nil)

Readers

transport-threads (generic function)

Writers

(setf transport-threads) (generic function)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *transport-load-lock*
Package

jsonrpc/utils

Source

lisp.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: copy-request INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: copy-response INSTANCE
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: port-available-p PORT
Package

jsonrpc/utils

Source

lisp.lisp (file)

Function: request-p OBJECT
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: response-p OBJECT
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: set-callback-for-id CONNECTION ID CALLBACK
Package

jsonrpc/connection

Source

lisp.lisp (file)

Function: valid-request-p REQUEST
Package

jsonrpc/request-response

Source

lisp.lisp (file)

Function: valid-response-p RESPONSE
Package

jsonrpc/request-response

Source

lisp.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Generic functions

Generic Function: exposable-mapper OBJECT
Generic Function: (setf exposable-mapper) NEW-VALUE OBJECT
Package

jsonrpc/mapper

Methods
Method: exposable-mapper (EXPOSABLE exposable)

automatically generated reader method

Source

lisp.lisp (file)

Method: (setf exposable-mapper) NEW-VALUE (EXPOSABLE exposable)

automatically generated writer method

Source

lisp.lisp (file)

Generic Function: notify-ready PROCESS-WAIT
Package

jsonrpc/connection

Source

lisp.lisp (file)

Methods
Method: notify-ready (PROCESS-WAIT process-wait)

Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Classes

Class: jsonrpc ()
Package

jsonrpc/class

Source

lisp.lisp (file)

Direct superclasses
Direct subclasses
Direct methods
Direct slots
Slot: transport
Type

(or null jsonrpc/transport/interface:transport)

Initargs

:transport

Readers

jsonrpc-transport (generic function)

Writers

(setf jsonrpc-transport) (generic function)

Class: process-wait ()
Package

jsonrpc/connection

Source

lisp.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses

connection (class)

Direct methods
Direct slots
Slot: condvar
Initform

(bordeaux-threads:make-condition-variable)

Slot: condlock
Initform

(bordeaux-threads:make-recursive-lock)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.5 Types

Type: jsonrpc-params ()
Package

jsonrpc/class

Source

lisp.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   J   L  
Index Entry  Section

F
File, Lisp, jsonrpc.asd: The jsonrpc<dot>asd file
File, Lisp, jsonrpc/class/lisp.lisp: The jsonrpc/class/lisp<dot>lisp file
File, Lisp, jsonrpc/connection/lisp.lisp: The jsonrpc/connection/lisp<dot>lisp file
File, Lisp, jsonrpc/errors/lisp.lisp: The jsonrpc/errors/lisp<dot>lisp file
File, Lisp, jsonrpc/main/lisp.lisp: The jsonrpc/main/lisp<dot>lisp file
File, Lisp, jsonrpc/mapper/lisp.lisp: The jsonrpc/mapper/lisp<dot>lisp file
File, Lisp, jsonrpc/request-response/lisp.lisp: The jsonrpc/request-response/lisp<dot>lisp file
File, Lisp, jsonrpc/transport/interface/lisp.lisp: The jsonrpc/transport/interface/lisp<dot>lisp file
File, Lisp, jsonrpc/utils/lisp.lisp: The jsonrpc/utils/lisp<dot>lisp file

J
jsonrpc.asd: The jsonrpc<dot>asd file
jsonrpc/class/lisp.lisp: The jsonrpc/class/lisp<dot>lisp file
jsonrpc/connection/lisp.lisp: The jsonrpc/connection/lisp<dot>lisp file
jsonrpc/errors/lisp.lisp: The jsonrpc/errors/lisp<dot>lisp file
jsonrpc/main/lisp.lisp: The jsonrpc/main/lisp<dot>lisp file
jsonrpc/mapper/lisp.lisp: The jsonrpc/mapper/lisp<dot>lisp file
jsonrpc/request-response/lisp.lisp: The jsonrpc/request-response/lisp<dot>lisp file
jsonrpc/transport/interface/lisp.lisp: The jsonrpc/transport/interface/lisp<dot>lisp file
jsonrpc/utils/lisp.lisp: The jsonrpc/utils/lisp<dot>lisp file

L
Lisp File, jsonrpc.asd: The jsonrpc<dot>asd file
Lisp File, jsonrpc/class/lisp.lisp: The jsonrpc/class/lisp<dot>lisp file
Lisp File, jsonrpc/connection/lisp.lisp: The jsonrpc/connection/lisp<dot>lisp file
Lisp File, jsonrpc/errors/lisp.lisp: The jsonrpc/errors/lisp<dot>lisp file
Lisp File, jsonrpc/main/lisp.lisp: The jsonrpc/main/lisp<dot>lisp file
Lisp File, jsonrpc/mapper/lisp.lisp: The jsonrpc/mapper/lisp<dot>lisp file
Lisp File, jsonrpc/request-response/lisp.lisp: The jsonrpc/request-response/lisp<dot>lisp file
Lisp File, jsonrpc/transport/interface/lisp.lisp: The jsonrpc/transport/interface/lisp<dot>lisp file
Lisp File, jsonrpc/utils/lisp.lisp: The jsonrpc/utils/lisp<dot>lisp file

Jump to:   F   J   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
A   C   D   E   F   G   J   M   N   P   R   S   T   V   W  
Index Entry  Section

(
(setf connection-outbox): Exported generic functions
(setf connection-outbox): Exported generic functions
(setf connection-request-callback): Exported generic functions
(setf connection-request-callback): Exported generic functions
(setf connection-request-queue): Exported generic functions
(setf connection-request-queue): Exported generic functions
(setf connection-socket): Exported generic functions
(setf connection-socket): Exported generic functions
(setf exposable-mapper): Internal generic functions
(setf exposable-mapper): Internal generic functions
(setf jsonrpc-error-code): Exported generic functions
(setf jsonrpc-error-code): Exported generic functions
(setf jsonrpc-error-message): Exported generic functions
(setf jsonrpc-error-message): Exported generic functions
(setf jsonrpc-transport): Exported generic functions
(setf jsonrpc-transport): Exported generic functions
(setf request-id): Exported functions
(setf request-method): Exported functions
(setf request-params): Exported functions
(setf response-error): Exported functions
(setf response-id): Exported functions
(setf response-result): Exported functions
(setf transport-connection): Exported generic functions
(setf transport-connection): Exported generic functions
(setf transport-message-callback): Exported generic functions
(setf transport-message-callback): Exported generic functions
(setf transport-threads): Exported generic functions
(setf transport-threads): Exported generic functions

A
add-message-to-outbox: Exported functions
add-message-to-queue: Exported generic functions
add-message-to-queue: Exported generic functions
add-message-to-queue: Exported generic functions
add-message-to-queue: Exported generic functions

C
call: Exported generic functions
call: Exported generic functions
call-async: Exported generic functions
call-async: Exported generic functions
call-async: Exported generic functions
call-async-to: Exported functions
call-to: Exported functions
clear-methods: Exported generic functions
clear-methods: Exported generic functions
client-connect: Exported functions
client-disconnect: Exported functions
connection-outbox: Exported generic functions
connection-outbox: Exported generic functions
connection-request-callback: Exported generic functions
connection-request-callback: Exported generic functions
connection-request-queue: Exported generic functions
connection-request-queue: Exported generic functions
connection-socket: Exported generic functions
connection-socket: Exported generic functions
copy-request: Internal functions
copy-response: Internal functions

D
dispatch: Exported generic functions
dispatch: Exported generic functions
dispatch: Exported generic functions

E
exposable-mapper: Internal generic functions
exposable-mapper: Internal generic functions
expose: Exported generic functions
expose: Exported generic functions

F
find-mode-class: Exported functions
Function, (setf request-id): Exported functions
Function, (setf request-method): Exported functions
Function, (setf request-params): Exported functions
Function, (setf response-error): Exported functions
Function, (setf response-id): Exported functions
Function, (setf response-result): Exported functions
Function, add-message-to-outbox: Exported functions
Function, call-async-to: Exported functions
Function, call-to: Exported functions
Function, client-connect: Exported functions
Function, client-disconnect: Exported functions
Function, copy-request: Internal functions
Function, copy-response: Internal functions
Function, find-mode-class: Exported functions
Function, make-client: Exported functions
Function, make-error-response: Exported functions
Function, make-id: Exported functions
Function, make-request: Exported functions
Function, make-response: Exported functions
Function, make-server: Exported functions
Function, notify-to: Exported functions
Function, parse-message: Exported functions
Function, port-available-p: Internal functions
Function, random-port: Exported functions
Function, receive-message: Exported functions
Function, request-id: Exported functions
Function, request-method: Exported functions
Function, request-p: Internal functions
Function, request-params: Exported functions
Function, response-error: Exported functions
Function, response-error-code: Exported functions
Function, response-error-message: Exported functions
Function, response-id: Exported functions
Function, response-p: Internal functions
Function, response-result: Exported functions
Function, server-listen: Exported functions
Function, set-callback-for-id: Internal functions
Function, valid-request-p: Internal functions
Function, valid-response-p: Internal functions

G
Generic Function, (setf connection-outbox): Exported generic functions
Generic Function, (setf connection-request-callback): Exported generic functions
Generic Function, (setf connection-request-queue): Exported generic functions
Generic Function, (setf connection-socket): Exported generic functions
Generic Function, (setf exposable-mapper): Internal generic functions
Generic Function, (setf jsonrpc-error-code): Exported generic functions
Generic Function, (setf jsonrpc-error-message): Exported generic functions
Generic Function, (setf jsonrpc-transport): Exported generic functions
Generic Function, (setf transport-connection): Exported generic functions
Generic Function, (setf transport-message-callback): Exported generic functions
Generic Function, (setf transport-threads): Exported generic functions
Generic Function, add-message-to-queue: Exported generic functions
Generic Function, call: Exported generic functions
Generic Function, call-async: Exported generic functions
Generic Function, clear-methods: Exported generic functions
Generic Function, connection-outbox: Exported generic functions
Generic Function, connection-request-callback: Exported generic functions
Generic Function, connection-request-queue: Exported generic functions
Generic Function, connection-socket: Exported generic functions
Generic Function, dispatch: Exported generic functions
Generic Function, exposable-mapper: Internal generic functions
Generic Function, expose: Exported generic functions
Generic Function, jsonrpc-error-code: Exported generic functions
Generic Function, jsonrpc-error-message: Exported generic functions
Generic Function, jsonrpc-transport: Exported generic functions
Generic Function, notify: Exported generic functions
Generic Function, notify-async: Exported generic functions
Generic Function, notify-ready: Internal generic functions
Generic Function, process-request: Exported generic functions
Generic Function, receive-message-using-transport: Exported generic functions
Generic Function, register-method: Exported generic functions
Generic Function, run-processing-loop: Exported generic functions
Generic Function, run-reading-loop: Exported generic functions
Generic Function, send-message: Exported generic functions
Generic Function, send-message-using-transport: Exported generic functions
Generic Function, start-client: Exported generic functions
Generic Function, start-server: Exported generic functions
Generic Function, transport-connection: Exported generic functions
Generic Function, transport-message-callback: Exported generic functions
Generic Function, transport-threads: Exported generic functions
Generic Function, wait-for-ready: Exported generic functions

J
jsonrpc-error-code: Exported generic functions
jsonrpc-error-code: Exported generic functions
jsonrpc-error-message: Exported generic functions
jsonrpc-error-message: Exported generic functions
jsonrpc-transport: Exported generic functions
jsonrpc-transport: Exported generic functions

M
make-client: Exported functions
make-error-response: Exported functions
make-id: Exported functions
make-request: Exported functions
make-response: Exported functions
make-server: Exported functions
Method, (setf connection-outbox): Exported generic functions
Method, (setf connection-request-callback): Exported generic functions
Method, (setf connection-request-queue): Exported generic functions
Method, (setf connection-socket): Exported generic functions
Method, (setf exposable-mapper): Internal generic functions
Method, (setf jsonrpc-error-code): Exported generic functions
Method, (setf jsonrpc-error-message): Exported generic functions
Method, (setf jsonrpc-transport): Exported generic functions
Method, (setf transport-connection): Exported generic functions
Method, (setf transport-message-callback): Exported generic functions
Method, (setf transport-threads): Exported generic functions
Method, add-message-to-queue: Exported generic functions
Method, add-message-to-queue: Exported generic functions
Method, add-message-to-queue: Exported generic functions
Method, call: Exported generic functions
Method, call-async: Exported generic functions
Method, call-async: Exported generic functions
Method, clear-methods: Exported generic functions
Method, connection-outbox: Exported generic functions
Method, connection-request-callback: Exported generic functions
Method, connection-request-queue: Exported generic functions
Method, connection-socket: Exported generic functions
Method, dispatch: Exported generic functions
Method, dispatch: Exported generic functions
Method, exposable-mapper: Internal generic functions
Method, expose: Exported generic functions
Method, jsonrpc-error-code: Exported generic functions
Method, jsonrpc-error-message: Exported generic functions
Method, jsonrpc-transport: Exported generic functions
Method, notify: Exported generic functions
Method, notify: Exported generic functions
Method, notify-async: Exported generic functions
Method, notify-async: Exported generic functions
Method, notify-ready: Internal generic functions
Method, process-request: Exported generic functions
Method, process-request: Exported generic functions
Method, register-method: Exported generic functions
Method, run-processing-loop: Exported generic functions
Method, run-reading-loop: Exported generic functions
Method, send-message: Exported generic functions
Method, transport-connection: Exported generic functions
Method, transport-message-callback: Exported generic functions
Method, transport-threads: Exported generic functions
Method, wait-for-ready: Exported generic functions

N
notify: Exported generic functions
notify: Exported generic functions
notify: Exported generic functions
notify-async: Exported generic functions
notify-async: Exported generic functions
notify-async: Exported generic functions
notify-ready: Internal generic functions
notify-ready: Internal generic functions
notify-to: Exported functions

P
parse-message: Exported functions
port-available-p: Internal functions
process-request: Exported generic functions
process-request: Exported generic functions
process-request: Exported generic functions

R
random-port: Exported functions
receive-message: Exported functions
receive-message-using-transport: Exported generic functions
register-method: Exported generic functions
register-method: Exported generic functions
request-id: Exported functions
request-method: Exported functions
request-p: Internal functions
request-params: Exported functions
response-error: Exported functions
response-error-code: Exported functions
response-error-message: Exported functions
response-id: Exported functions
response-p: Internal functions
response-result: Exported functions
run-processing-loop: Exported generic functions
run-processing-loop: Exported generic functions
run-reading-loop: Exported generic functions
run-reading-loop: Exported generic functions

S
send-message: Exported generic functions
send-message: Exported generic functions
send-message-using-transport: Exported generic functions
server-listen: Exported functions
set-callback-for-id: Internal functions
start-client: Exported generic functions
start-server: Exported generic functions

T
transport-connection: Exported generic functions
transport-connection: Exported generic functions
transport-message-callback: Exported generic functions
transport-message-callback: Exported generic functions
transport-threads: Exported generic functions
transport-threads: Exported generic functions

V
valid-request-p: Internal functions
valid-response-p: Internal functions

W
wait-for-ready: Exported generic functions
wait-for-ready: Exported generic functions

Jump to:   (  
A   C   D   E   F   G   J   M   N   P   R   S   T   V   W  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
C   E   I   M   O   P   R   S   T  
Index Entry  Section

*
*connection*: Exported special variables
*default-timeout*: Exported special variables
*transport-load-lock*: Internal special variables

C
code: Exported conditions
code: Exported conditions
code: Exported conditions
code: Exported conditions
code: Exported conditions
code: Exported conditions
code: Exported conditions
condlock: Internal classes
condvar: Internal classes
connection: Exported classes

E
error: Exported structures

I
id: Exported structures
id: Exported structures

M
mapper: Exported classes
message: Exported conditions
message: Exported conditions
message: Exported conditions
message: Exported conditions
message: Exported conditions
message: Exported conditions
message: Exported conditions
message-callback: Exported classes
method: Exported structures

O
outbox: Exported classes

P
params: Exported structures

R
request-callback: Exported classes
request-queue: Exported classes
response-callback: Exported classes
response-lock: Exported classes
response-map: Exported classes
result: Exported structures

S
Slot, code: Exported conditions
Slot, code: Exported conditions
Slot, code: Exported conditions
Slot, code: Exported conditions
Slot, code: Exported conditions
Slot, code: Exported conditions
Slot, code: Exported conditions
Slot, condlock: Internal classes
Slot, condvar: Internal classes
Slot, connection: Exported classes
Slot, error: Exported structures
Slot, id: Exported structures
Slot, id: Exported structures
Slot, mapper: Exported classes
Slot, message: Exported conditions
Slot, message: Exported conditions
Slot, message: Exported conditions
Slot, message: Exported conditions
Slot, message: Exported conditions
Slot, message: Exported conditions
Slot, message: Exported conditions
Slot, message-callback: Exported classes
Slot, method: Exported structures
Slot, outbox: Exported classes
Slot, params: Exported structures
Slot, request-callback: Exported classes
Slot, request-queue: Exported classes
Slot, response-callback: Exported classes
Slot, response-lock: Exported classes
Slot, response-map: Exported classes
Slot, result: Exported structures
Slot, socket: Exported classes
Slot, threads: Exported classes
Slot, transport: Internal classes
socket: Exported classes
Special Variable, *connection*: Exported special variables
Special Variable, *default-timeout*: Exported special variables
Special Variable, *transport-load-lock*: Internal special variables

T
threads: Exported classes
transport: Internal classes

Jump to:   *  
C   E   I   M   O   P   R   S   T  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   E   J   P   R   S   T  
Index Entry  Section

C
Class, client: Exported classes
Class, connection: Exported classes
Class, exposable: Exported classes
Class, jsonrpc: Internal classes
Class, process-wait: Internal classes
Class, server: Exported classes
Class, transport: Exported classes
client: Exported classes
Condition, jsonrpc-callback-error: Exported conditions
Condition, jsonrpc-error: Exported conditions
Condition, jsonrpc-internal-error: Exported conditions
Condition, jsonrpc-invalid-params: Exported conditions
Condition, jsonrpc-invalid-request: Exported conditions
Condition, jsonrpc-invalid-response: Exported conditions
Condition, jsonrpc-method-not-found: Exported conditions
Condition, jsonrpc-parse-error: Exported conditions
Condition, jsonrpc-server-error: Exported conditions
connection: Exported classes

E
exposable: Exported classes

J
jsonrpc: The jsonrpc system
jsonrpc: The jsonrpc package
jsonrpc: Internal classes
jsonrpc-callback-error: Exported conditions
jsonrpc-error: Exported conditions
jsonrpc-internal-error: Exported conditions
jsonrpc-invalid-params: Exported conditions
jsonrpc-invalid-request: Exported conditions
jsonrpc-invalid-response: Exported conditions
jsonrpc-method-not-found: Exported conditions
jsonrpc-params: Internal types
jsonrpc-parse-error: Exported conditions
jsonrpc-server-error: Exported conditions
jsonrpc/class: The jsonrpc/class system
jsonrpc/class: The jsonrpc/class package
jsonrpc/connection: The jsonrpc/connection system
jsonrpc/connection: The jsonrpc/connection package
jsonrpc/errors: The jsonrpc/errors system
jsonrpc/errors: The jsonrpc/errors package
jsonrpc/main: The jsonrpc/main system
jsonrpc/mapper: The jsonrpc/mapper system
jsonrpc/mapper: The jsonrpc/mapper package
jsonrpc/request-response: The jsonrpc/request-response system
jsonrpc/request-response: The jsonrpc/request-response package
jsonrpc/transport/interface: The jsonrpc/transport/interface system
jsonrpc/transport/interface: The jsonrpc/transport/interface package
jsonrpc/utils: The jsonrpc/utils system
jsonrpc/utils: The jsonrpc/utils package

P
Package, jsonrpc: The jsonrpc package
Package, jsonrpc/class: The jsonrpc/class package
Package, jsonrpc/connection: The jsonrpc/connection package
Package, jsonrpc/errors: The jsonrpc/errors package
Package, jsonrpc/mapper: The jsonrpc/mapper package
Package, jsonrpc/request-response: The jsonrpc/request-response package
Package, jsonrpc/transport/interface: The jsonrpc/transport/interface package
Package, jsonrpc/utils: The jsonrpc/utils package
process-wait: Internal classes

R
request: Exported structures
response: Exported structures

S
server: Exported classes
Structure, request: Exported structures
Structure, response: Exported structures
System, jsonrpc: The jsonrpc system
System, jsonrpc/class: The jsonrpc/class system
System, jsonrpc/connection: The jsonrpc/connection system
System, jsonrpc/errors: The jsonrpc/errors system
System, jsonrpc/main: The jsonrpc/main system
System, jsonrpc/mapper: The jsonrpc/mapper system
System, jsonrpc/request-response: The jsonrpc/request-response system
System, jsonrpc/transport/interface: The jsonrpc/transport/interface system
System, jsonrpc/utils: The jsonrpc/utils system

T
transport: Exported classes
Type, jsonrpc-params: Internal types

Jump to:   C   E   J   P   R   S   T