Common Lisp Package: DBUS

README:

FUNCTION

Public

DECODE-MESSAGE (STREAM)

Decode a DBUS message from the stream into a MESSAGE object.

ENCODE-MESSAGE (ENDIANNESS TYPE FLAGS MAJOR-PROTOCOL-VERSION SERIAL PATH INTERFACE MEMBER ERROR-NAME REPLY-SERIAL DESTINATION SENDER SIGNATURE BODY)

Encode a DBUS message and return it as an octet vector.

FIND-AUTHENTICATION-MECHANISM-CLASS (NAME &KEY (IF-DOES-NOT-EXIST ERROR))

Return the AUTHENTICATION-MECHANISM class (or class name) corresponding to NAME.

SETFFIND-AUTHENTICATION-MECHANISM-CLASS (CLASS NAME &KEY (IF-EXISTS WARN))

Associate a AUTHENTICATION-MECHANISM class (or class name) with NAME.

FIND-SERVER-ADDRESS-CLASS (NAME &KEY (IF-DOES-NOT-EXIST ERROR))

Return the SERVER-ADDRESS class (or class name) corresponding to NAME.

SETFFIND-SERVER-ADDRESS-CLASS (CLASS NAME &KEY (IF-EXISTS WARN))

Associate a SERVER-ADDRESS class (or class name) with NAME.

INEXISTENT-ENTRY (DESIGNATOR IF-DOES-NOT-EXIST)

Called when an inexistent entry was sought using DESIGNATOR, and acts according to the value of IF-DOES-NOT-EXIST: :ERROR Signal an INEXISTENT-ENTRY error with a USE-VALUE restart. NIL Return NIL.

PACK (STREAM ENDIANNESS SIGEXP &REST VALUES)

Pack values according to the signature expression and endianness into stream.

PARSE-SERVER-ADDRESSES-STRING (STRING)

Parse a (possibly escaped) server addresses string into a list of server addresses.

SESSION-SERVER-ADDRESSES

Return a list of server addresses for the current session.

SIGEXP (OBJECT)

Return the signature expression corresponding to the object passed. If the object is a string, it is assumed to be a signature string, otherwise it is assumed to be a signature expression and is returned as-is.

SIGNATURE (OBJECT)

Return the signature string corresponding to the object passed. If the object is a string, it is assumed to be a signature string and is returned as-is, otherwise it is assumed to be a signature expression.

SYSTEM-SERVER-ADDRESSES

Return a list of server addresses for the current system.

UNPACK (STREAM ENDIANNESS SIGEXP)

Unpack values from stream according to endianness and the signature expression and return them as a list.

Undocumented

HELLO (CONNECTION)

INTERFACE-METHOD (NAME INTERFACE)

SETFINTERFACE-METHOD (METHOD NAME INTERFACE)

INVOKE-METHOD (CONNECTION MEMBER &KEY PATH SIGNATURE ARGUMENTS INTERFACE DESTINATION NO-REPLY NO-AUTO-START ASYNCHRONOUS (ENDIANNESS LITTLE-ENDIAN))

LIST-INTERFACE-METHODS (INTERFACE)

LIST-OBJECT-INTERFACES (OBJECT)

MAKE-OBJECT-FROM-INTROSPECTION (CONNECTION PATH DESTINATION)

OBJECT-INTERFACE (NAME OBJECT)

SETFOBJECT-INTERFACE (INTERFACE NAME OBJECT)

OBJECT-INVOKE (OBJECT INTERFACE-NAME METHOD-NAME &REST ARGS)

OPEN-SOCKET-CONNECTION (ADDRESS-FAMILY SOCKET-ADDRESS)

PARSE-INTROSPECTION-DOCUMENT (INPUT)

Private

ALIGNMENT (TYPE)

Return the number of octets to which elements of the supplied type should be aligned.

CALL-WITH-IF-FAILED-HANDLER (IF-FAILED FUNCTION)

Call FUNCTION in a context according to IF-FAILED: :ERROR Signal an error on failure. NIL Return NIL on failure.

CIRCULAR-LIST (&REST ELEMENTS)

Creates a circular list of ELEMENTS.

CURRENT-USERNAME

Return the current user's name.

DECODE-HEX-STRING (STRING &KEY (START 0) END)

Decode a string composed of hexadecimal digit character pairs, each representing an octet, to an octet vector with the corresponding octets. START and END are bounding index designators for the string.

DOUBLE-TO-UNSIGNED (VALUE)

Return an unsigned 64-bit byte representing the double-float value passed.

ENCODE-HEX-STRING (DATA &KEY (START 0) END)

Encode a string composed of hexadecimal digit character pairs, each representing an octet. The input is either an octet vector, or a UTF-8 string that will be converted to one. START and END are bounding index designators for the data.

ENSURE-ADDRESS (ADDRESS &KEY (FAMILY INTERNET) ABSTRACT (ERRORP T))

If FAMILY is :LOCAL, a LOCAL-ADDRESS is instantiated with ADDRESS as its NAME slot. If FAMILY is :INTERNET, an appropriate subtype of INET-ADDRESS is instantiated after guessing the address type through ADDRESS-TO-VECTOR. If the address is invalid and ERRORP is not NIL, then a CL:PARSE-ERROR is signalled, otherwise NIL is returned. When ADDRESS is already an instance of the ADDRESS class, a check is made to see if it matches the FAMILY argument and it is returned unmodified.

ENSURE-LIST (LIST)

If LIST is a list, it is returned. Otherwise returns the list designated by LIST.

FORMAT-AUTHENTICATION-COMMAND (COMMAND &REST ARGUMENTS)

Format and return authentication command line. Command is one of :AUTH, :CANCEL, :BEGIN, :DATA, or :ERROR, and takes arguments in accordance with the D-BUS specification.

FORMAT-SIGEXP-TO-STREAM (SIGEXP STREAM)

Format a signature expression as a signature string into a character stream.

GETENV (NAME)

Returns the value of environment variable NAME.

GETPWUID (UID)

Gets the password-entry of a user, by user id (reentrant).

GETUID

Get real user id of the current process.

HASH-TABLE-VALUES (TABLE)

Returns a list containing the values of hash table TABLE.

MAKE-OCTET-VECTOR (SIZE &REST ARRAY-OPTIONS)

Return a fresh vector whose element type is (unsigned-byte 8).

MAKE-WEAKLY-KEYED-HASH-TABLE

Return a hash-table with key weakness.

PACK-1 (STREAM ENDIANNESS TYPE VALUE)

Pack a single DBUS value into stream.

PACK-ARRAY (STREAM ENDIANNESS ELEMENT-TYPE VALUE)

Pack DBUS array into stream.

PACK-SEQ (STREAM ENDIANNESS TYPES VALUES)

Pack a sequence of values into stream.

PACK-STRING (STREAM ENDIANNESS VALUE LENGTH-SIZE)

Pack DBUS string into stream.

PACK-VARIANT (STREAM ENDIANNESS ELEMENT-TYPES VALUE)

Pack DBUS variant into stream.

PARSE-AUTHENTICATION-RESPONSE (LINE &KEY AS-STRING)

Parse authentication response line and return two values: :REJECTED Current authentication exchanged failed; the second value is a list of authentication mechanisms. :OK Client has been authenticated; the second value is the server's UUID. :DATA Data are available; the second value is either an octet vector or a string, depending on the value of AS-STRING. :ERROR Bad command or arguments; the second value is NIL. :UNEXPECTED Unexpected command; the second value is the response line.

PARSE-SERVER-ADDRESSES-FROM-STREAM (IN)

Parse unescaped server addresses text from a character stream and return a list of server addresses.

PARSE-SIGNATURE-FROM-STREAM (STREAM &OPTIONAL TERMINATOR-CHAR NUM-ELEMENTS)

Parse a signature string from a character stream and return the corresponding signature expression. The value of TERMINATOR-CHAR determines when to stop parsing. If it is NIL (the default), parsing is stopped when there are no more characters left to read from the stream. If it is a character, parsing is stopped when the same character is read from the stream. The value of NUM-ELEMENTS determines how many elements (types) should be read before parsing is stopped. If it is NIL (the default), there is no bound on the number of elements to be read.

PLIST-HASH-TABLE (PLIST &REST HASH-TABLE-INITARGS)

Returns a hash table containing the keys and values of the property list PLIST. Hash table is initialized using the HASH-TABLE-INITARGS.

PROMPT-FOR-VALUE

Interactively prompt for a value. An expression is read and evaluated, and its value is returned.

RANDOM-CHALLENGE-STRING (&OPTIONAL (NUM-OCTETS 16))

Return a string containing a hex-encoded representation of a number of random octet values.

RECEIVE-AUTHENTICATION-RESPONSE (CONNECTION &KEY AS-STRING EXPECT)

Receive authentication response line from the server. If EXPECT is NIL, just return the response command and argument. Otherwise, compare its value to the response command. If they are the same, just return the argument; otherwise, signal an authentication error.

REPLACE-ENTRY-P (OLD NEW IF-EXISTS)

Return true if the new entry should replace the old one. IF-EXISTS determines how to find out: :ERROR Signal an ENTRY-REPLACEMENT-ATTEMPT error with a CONTINUE restart to replace the entry, and an ABORT restart to not replace it. :WARN Replace the entry after signaling a warning. :DONT-REPLACE Don't replace entry. :REPLACE Replace entry.

SEND-AUTHENTICATION-COMMAND (CONNECTION COMMAND &REST ARGUMENTS)

Send an authentication command to the server.

SIGNED-TO-UNSIGNED (VALUE SIZE)

Return the unsigned representation of a signed byte with a given size.

SPLIT-SEQUENCE (DELIMITER SEQUENCE &KEY (START 0) (END NIL) (FROM-END NIL) (COUNT NIL) (REMOVE-EMPTY-SUBSEQS NIL) (TEST #'EQL) (TEST-NOT NIL) (KEY #'IDENTITY))

Return a list of subsequences in seq delimited by delimiter. If :remove-empty-subseqs is NIL, empty subsequences will be included in the result; otherwise they will be discarded. All other keywords work analogously to those for CL:SUBSTITUTE. In particular, the behaviour of :from-end is possibly different from other versions of this function; :from-end values of NIL and T are equivalent unless :count is supplied. The second return value is an index suitable as an argument to CL:SUBSEQ into the sequence indicating where processing stopped.

STARTS-WITH-SUBSEQ (PREFIX SEQUENCE &REST ARGS &KEY (RETURN-SUFFIX NIL) &ALLOW-OTHER-KEYS)

Test whether the first elements of SEQUENCE are the same (as per TEST) as the elements of PREFIX. If RETURN-SUFFIX is T the functions returns, as a second value, a displaced array pointing to the sequence after PREFIX.

STREAM-READ-POSITION (STREAM)

Return the stream's read position (zero by default).

SETFSTREAM-READ-POSITION (NEW-READ-POSITION STREAM)

Set the stream's read position to a new value.

UNESCAPE-SERVER-ADDRESSES-STRING (STRING)

Unescape a server addresses string per the DBUS specification's escaping rules and return the unescaped string. The string returned may be the same as the string supplied if no unescaping is needed.

UNPACK-1 (STREAM ENDIANNESS TYPE)

Unpack a single DBUS value from stream.

UNPACK-ARRAY (STREAM ENDIANNESS ELEMENT-TYPE LENGTH)

Unpack DBUS array from stream.

UNPACK-SEQ (STREAM ENDIANNESS TYPES)

Unpack a sequence of DBUS values from stream.

UNPACK-STRING (STREAM ENDIANNESS LENGTH)

Unpack DBUS string from stream.

UNPACK-VARIANT (STREAM ENDIANNESS)

Unpack DBUS variant from stream.

UNSIGNED-TO-DOUBLE (VALUE)

Return the double-float value represented by the unsigned 64-bit byte supplied.

UNSIGNED-TO-SIGNED (VALUE SIZE)

Return the signed representation of an unsigned byte with a given size.

Undocumented

ACTIVATE-IO-HANDLERS (CONNECTION)

CALL-WITH-OPEN-BUS (FUNCTION EVENT-BASE SERVER-ADDRESSES)

DONT-RESOLVE-ENTITIES (A B)

FETCH-INTROSPECTION-DOCUMENT (CONNECTION PATH DESTINATION)

FIND-DBUS-TYPE (DESIGNATOR &OPTIONAL (TABLE *DBUS-TYPE-TABLE*))

MAKE-DBUS-TYPE-FORMATTER/PARSER (NAME SIGNATURE COMPOSITE)

MAKE-INTERFACE (NAME METHODS)

MAKE-METHOD (NAME SIGNATURE)

MAKE-OBJECT (CONNECTION PATH DESTINATION INTERFACES)

MAKE-XSPAM-SOURCE (SRC &REST ARGS)

OCTETS-TO-STRING (VECTOR &KEY (START 0) END (ERRORP (NOT *SUPPRESS-CHARACTER-CODING-ERRORS*)) (ENCODING *DEFAULT-CHARACTER-ENCODING*))

REGISTER-DBUS-TYPE (TYPE &OPTIONAL (TABLE *DBUS-TYPE-TABLE*))

SIGNATURE-FOR-METHOD (METHOD-NAME INTERFACE-NAME OBJECT)

STRING-TO-OCTETS (STRING &KEY (ENCODING *DEFAULT-CHARACTER-ENCODING*) (START 0) END (USE-BOM DEFAULT) (ERRORP (NOT *SUPPRESS-CHARACTER-CODING-ERRORS*)))

MACRO

Public

Undocumented

WITH-INTROSPECTED-OBJECT ((NAME BUS PATH DESTINATION) &BODY FORMS)

WITH-OPEN-BUS ((BUS-VAR SERVER-ADDRESSES &KEY EVENT-BASE) &BODY FORMS)

WITH-OPEN-CONNECTION ((CONNECTION EVENT-BASE SERVER-ADDRESSES &KEY (IF-FAILED ERROR)) &BODY FORMS)

Private

DEFINE-NAME-CLASS-MAPPING (&KEY CLASS MAP FIND)

Define an interface for mapping names (strings) to classes (or class names).

ONCE-ONLY (SPECS &BODY FORMS)

Evaluates FORMS with symbols specified in SPECS rebound to temporary variables, ensuring that each initform is evaluated only once. Each of SPECS must either be a symbol naming the variable to be rebound, or of the form: (symbol initform) Bare symbols in SPECS are equivalent to (symbol symbol) Example: (defmacro cons1 (x) (once-only (x) `(cons ,x ,x))) (let ((y 0)) (cons1 (incf y))) => (1 . 1)

WHEN-LET (BINDINGS &BODY FORMS)

Creates new variable bindings, and conditionally executes FORMS. BINDINGS must be either single binding of the form: (variable initial-form) or a list of bindings of the form: ((variable-1 initial-form-1) (variable-2 initial-form-2) ... (variable-n initial-form-n)) All initial-forms are executed sequentially in the specified order. Then all the variables are bound to the corresponding values. If all variables were bound to true values, then FORMS are executed as an implicit PROGN.

WITH-BINARY-READERS ((STREAM ENDIANNESS &KEY PREFIX) &BODY FORMS)

Evaluate forms with functions to read binary data from the stream in a given endianness. STREAM A form evaluating to a binary input stream. ENDIANNESS A form evaluating to either :LITTLE-ENDIAN or :BIG-ENDIAN. PREFIX Either NIL (the default) or a string designator. In the latter case, the following function names will be symbols interned in the current package, with <PREFIX>-<NAME> names, e.g., INPUT-U8 if the prefix is INPUT. Local functions: ALIGN A function that takes an integer and ensures the stream's read position is aligned to it. It does so by reading and ignoring the appropriate number of octets. U8, U16, U32, U64 Functions that read 8-, 16-, 32-, and 64-bit unsigned byte values, respectively, from the stream, in the appropriate endianness. The read position is ensured to be naturally aligned before reading the value.

WITH-BINARY-WRITERS ((STREAM ENDIANNESS &KEY PREFIX) &BODY FORMS)

Evaluate forms with functions to write binary data to the stream in a given endianness. STREAM A form evaluating to a binary output stream with a file position. ENDIANNESS A form evaluating to either :LITTLE-ENDIAN or :BIG-ENDIAN. PREFIX Either NIL (the default) or a string designator. In the latter case, the following function names will be symbols interned in the current package, with <PREFIX>-<NAME> names, e.g., OUTPUT-U8 if the prefix is OUTPUT. Local functions: ALIGN A function that takes an integer and ensures the stream's file position is aligned to it. It does so by writing the appropriate number of 0 octets. U8, U16, U32, U64 Functions that take 8-, 16-, 32-, and 64-bit unsigned byte values, respectively, and write these values to the stream, in the appropriate endianness. The values are always naturally aligned before written.

WITH-EVENT-BASE ((VAR &REST INITARGS) &BODY BODY)

Binds VAR to a new EVENT-BASE, instantiated with INITARGS, within the extent of BODY. Closes VAR.

WITH-GENSYMS (NAMES &BODY FORMS)

Binds each variable named by a symbol in NAMES to a unique symbol around FORMS. Each of NAMES must either be either a symbol, or of the form: (symbol string-designator) Bare symbols appearing in NAMES are equivalent to: (symbol symbol) The string-designator is used as the argument to GENSYM when constructing the unique symbol the named variable will be bound to.

WITH-IF-FAILED-HANDLER (IF-FAILED-FORM &BODY FORMS)

Sugar for CALL-WITH-IF-FAILED-HANDLER.

WITH-OUTPUT-TO-SEQUENCE ((VAR &KEY AS-LIST (ELEMENT-TYPE ''OCTET) TRANSFORMER) &BODY BODY)

Creates an IN-MEMORY output stream, binds VAR to this stream and then executes the code in BODY. The stream stores data of type ELEMENT-TYPE (a subtype of OCTET) which is (optionally) transformed by the function TRANSFORMER prior to storage. The stream is automatically closed on exit from WITH-OUTPUT-TO-SEQUENCE, no matter whether the exit is normal or abnormal. The return value of this macro is a vector (or a list if AS-LIST is true) containing the octets that were sent to the stream within BODY.

Undocumented

ATTRIBUTE (NAME &BODY BODY)

DEFAULTED-ATTRIBUTE (NAME DEFAULT-VALUE &BODY FORMS)

DEFINE-DBUS-TYPE (NAME &KEY SIGNATURE COMPOSITE ALIGNMENT PACK UNPACK)

ELEMENT (NAME &BODY BODY &ENVIRONMENT ENV)

ONE-OR-MORE (NODE &ENVIRONMENT ENV)

OPTIONAL-ATTRIBUTE (NAME &BODY BODY)

WITH-XSPAM-SOURCE (SRC &BODY BODY)

ZERO-OR-MORE (NODE &ENVIRONMENT ENV)

GENERIC-FUNCTION

Public

AUTHENTICATE (AUTHENTICATION-MECHANISMS CONNECTION &KEY IF-FAILED (IF-FAILED ERROR))

Attempt to authenticate with the server associated with the connection, and return true if successful. The default value for IF-FAILED is :ERROR.

CLOSE-CONNECTION (CONNECTION)

Close an open connection.

CONNECTION-FD (CONNECTION)

Return the file descriptor associated with the (open) connection.

CONNECTION-NEXT-SERIAL (CONNECTION)

Return a 32-bit integer for associating request messages and their replies.

DRAIN-PENDING-MESSAGES (CONNECTION)

Return a list of the currently pending messages associated with the connection, from oldest to newest, and consider these messages no longer pending.

FEED-AUTHENTICATION-MECHANISM (AUTHENTICATION-MECHANISM CHALLENGE)

Feed authentication mechanism with a challenge, which is either a string or an octet vector in accordance with the mechanism's textuality, or :INITIAL-RESPONSE. The method should return one of the following: :CONTINUE <response> Continue with the authentication conversation and send <response> to the server. :OK <response> After sending <response> to the server the client is finished and expecting an :OK response. :ERROR The challenge was invalid.

OPEN-CONNECTION (EVENT-BASE SERVER-ADDRESS &KEY IF-FAILED (IF-FAILED ERROR))

Open a connection to the server designated by the server address and return a connection object. The default value for IF-FAILED is :ERROR. An IOLIB event base object must be passed. Should also send the initial "nul byte".

RECEIVE-LINE (CONNECTION)

Read a line of text from the server and return it as a string. The operation blocks until a whole line can be read. The string will not contain newline characters.

RECEIVE-MESSAGE (CONNECTION)

Read a D-BUS message from the server.

SEND-LINE (LINE CONNECTION)

Send a line of text, represented by a string, to the server. The operation will force (but not finish) output before returning. The string should not contain any newline characters.

SEND-MESSAGE (ENCODED-MESSAGE CONNECTION)

Send an encoded message to the server. The operation will force (but not finish) output before returning.

SERVER-ADDRESS-PROPERTY (NAME SERVER-ADDRESS &KEY IF-DOES-NOT-EXIST (IF-DOES-NOT-EXIST ERROR))

Return the value of the server address's property with the supplied name.

SUPPORTED-AUTHENTICATION-MECHANISMS (CONNECTION)

Return a list of authentication mechanisms supported by the server.

WAIT-FOR-REPLY (SERIAL CONNECTION)

Wait for a reply message with the supplied serial to be received via connection.

Undocumented

AUTHENTICATION-ERROR-ARGUMENT (CONDITION)

AUTHENTICATION-ERROR-COMMAND (CONDITION)

ENTRY-REPLACEMENT-ATTEMPT-NEW (CONDITION)

ENTRY-REPLACEMENT-ATTEMPT-OLD (CONDITION)

INEXISTENT-ENTRY-DESIGNATOR (CONDITION)

METHOD-ERROR-ARGUMENTS (CONDITION)

Private

CONNECT (SOCKET ADDRESS &KEY (WAIT T) (PORT 0) &ALLOW-OTHER-KEYS)

Connects SOCKET to ADDRESS. For INTERNET sockets you can specify the port to connect to using keyword argument PORT. The default value of PORT is 0, which usually means letting the OS choose a random port to connect to. WAIT specifies how long to wait for a connection: NIL means "return immediately", a non-negative real specifies a timeout in seconds and T means "wait forever".

DIGEST-SEQUENCE (DIGEST-SPEC SEQUENCE &REST ARGS &KEY START END DIGEST DIGEST-START (DIGEST-START 0) (START 0))

Return the digest of the subsequence of SEQUENCE specified by START and END using the algorithm DIGEST-NAME. For CMUCL and SBCL, SEQUENCE can be any vector with an element-type of (UNSIGNED-BYTE 8); for other implementations, SEQUENCE must be a (SIMPLE-ARRAY (UNSIGNED-BYTE 8) (*)). If DIGEST is provided, the digest will be placed into DIGEST starting at DIGEST-START. DIGEST must be a (SIMPLE-ARRAY (UNSIGNED-BYTE 8) (*)). An error will be signaled if there is insufficient room in DIGEST.

MAKE-SOCKET (&KEY ADDRESS-FAMILY TYPE CONNECT IPV6 EXTERNAL-FORMAT (ADDRESS-FAMILY INTERNET) (TYPE STREAM) (CONNECT ACTIVE) (IPV6 *IPV6*) (EXTERNAL-FORMAT DEFAULT) &ALLOW-OTHER-KEYS)

Create an instance of a subclass of SOCKET. ADDRESS-FAMILY, TYPE, CONNECT and IPV6 are used to specify the kind of socket to create. * ADDRESS-FAMILY - :INTERNET or :LOCAL (or :FILE as synonim) * TYPE - :STREAM or :DATAGRAM * CONNECT - :ACTIVE or :PASSIVE * IPV6 - if NIL, create an IPv4 socket, otherwise an IPv6 socket. To initialize the socket, the following keyword arguments can be used depending on ADDRESS-FAMILY, TYPE and CONNECT: * :local-host - a hostname designator or NIL. If non-null the socket will be bound to this address * :local-port - a port designator or NIL. If LOCAL-HOST is non-null, bind the socket to this port. If NIL, choose a random port * :remote-host - a hostname designator or NIL. If non-null the socket will be connected to this address * :remote-port - a port designator. If REMOTE-HOST is non-null, connect the socket to this port * :local-filename - a string or NIL. If non-null the socket will be bound to this file * :remote-filename - a string or NIL. If non-null the socket will be connected to this file * :backlog - a positive integer or NIL. Specifies the length of the incomming connection queue and can't be larger than +MAX-BACKLOG-SIZE+. If NIL, default is *DEFAULT-BACKLOG-SIZE* * :reuse-address: a boolean(default T). set option SO_REUSEADDR if LOCAL-HOST is non-null * :keepalive - a boolean. set option SO_KEEPALIVE * :nodelay - a boolean. set option SO_NODELAY * :interface - a string. set option SO_BINDTODEVICE to this interface * :input-buffer-size - a positive integer. Create the stream input buffer of this size * :output-buffer-size - a positive integer. Create the stream output buffer of this size Glossary: * hostname designator: an instance of INET-ADDRESS or any object accepted by LOOKUP-HOST. IPV6 is passed to LOOKUP-HOST as is * port designator: any object accepted by LOOKUP-SERVICE :address-family :INTERNET :type :STREAM :connect :ACTIVE * Valid keyword args: :LOCAL-HOST, :LOCAL-PORT, :REMOTE-HOST, :REMOTE-PORT, :REUSE-ADDRESS, :KEEPALIVE, :NODELAY, :INPUT-BUFFER-SIZE and :OUTPUT-BUFFER-SIZE :address-family :INTERNET :type :STREAM :connect :PASSIVE * Valid keyword args: :LOCAL-HOST, :LOCAL-PORT, :BACKLOG, :REUSE-ADDRESS, :INTERFACE and :NODELAY :address-family :INTERNET :type :STREAM :connect :ACTIVE * Valid keyword args: :LOCAL-FILENAME, :REMOTE-FILENAME, :INPUT-BUFFER-SIZE and :OUTPUT-BUFFER-SIZE :address-family :INTERNET :type :STREAM :connect :PASSIVE * Valid keyword args: :LOCAL-FILENAME, :REMOTE-FILENAME, :BACKLOG and :REUSE-ADDRESS :address-family :INTERNET :type :DATAGRAM * Valid keyword args: :LOCAL-HOST, :LOCAL-PORT, :REMOTE-HOST, :REMOTE-PORT, :REUSE-ADDRESS, :INTERFACE and :BROADCAST :address-family :LOCAL :type :DATAGRAM * Valid keyword args: :LOCAL-FILENAME and :REMOTE-FILENAME

Undocumented

EVENT-DISPATCH (EVENT-BASE &KEY ONE-SHOT TIMEOUT MIN-STEP MAX-STEP)

MAKE-IN-MEMORY-INPUT-STREAM (VECTOR &KEY TRANSFORMER (END (LENGTH VECTOR)) (START 0))

SET-IO-HANDLER (EVENT-BASE FD EVENT-TYPE FUNCTION &KEY TIMEOUT ONE-SHOT)

SLOT-ACCESSOR

Public

AUTHENTICATION-MECHANISM-NAME (AUTHENTICATION-MECHANISM)

The Return the name for the authentication mechanism.

AUTHENTICATION-MECHANISM-TEXTUAL-P (AUTHENTICATION-MECHANISM)

The Return true if data from server should be converted to a string, and false if it should remain an octet vector.

CONNECTION-PENDING-MESSAGES (CONNECTION)

The Return a list of the currently pending messages associated with the connection, from newest to oldest.

SETFCONNECTION-PENDING-MESSAGES (NEW-LIST CONNECTION)

The Set the list of currently pending messages associated with the connection.

CONNECTION-SERVER-ADDRESS (CONNECTION)

The Return the address of the server associated with the connection.

CONNECTION-SERVER-UUID (CONNECTION)

The Return the unique ID of the server associated with the connection.

SETFCONNECTION-SERVER-UUID (UUID CONNECTION)

The Set the unique ID of the server associated with the connection. If an ID is already set and is not EQUAL to the new ID, signal a continuable error.

SERVER-ADDRESS-TRANSPORT-NAME (SERVER-ADDRESS)

The Return the transport name for the server address.

Undocumented

BUS-CONNECTION (OBJECT)

BUS-NAME (OBJECT)

INTERFACE-NAME (OBJECT)

MESSAGE-BODY (OBJECT)

MESSAGE-BODY-LENGTH (OBJECT)

MESSAGE-DESTINATION (OBJECT)

MESSAGE-ENDIANNESS (OBJECT)

MESSAGE-ERROR-NAME (OBJECT)

MESSAGE-FLAGS (OBJECT)

MESSAGE-INTERFACE (OBJECT)

MESSAGE-MAJOR-PROTOCOL-VERSION (OBJECT)

MESSAGE-MEMBER (OBJECT)

MESSAGE-PATH (OBJECT)

MESSAGE-REPLY-SERIAL (OBJECT)

MESSAGE-SENDER (OBJECT)

MESSAGE-SERIAL (OBJECT)

MESSAGE-SIGNATURE (OBJECT)

METHOD-NAME (OBJECT)

METHOD-SIGNATURE (OBJECT)

OBJECT-CONNECTION (OBJECT)

OBJECT-DESTINATION (OBJECT)

OBJECT-PATH (OBJECT)

Private

FD-OF (OBJECT)

placeholder

SETFFD-OF (NEW-VALUE OBJECT)

placeholder

Undocumented

CONNECTION-EVENT-BASE (OBJECT)

CONNECTION-SOCKET (OBJECT)

DBUS-TYPE-ALIGNMENT (OBJECT)

DBUS-TYPE-NAME (OBJECT)

DBUS-TYPE-PACKER (OBJECT)

DBUS-TYPE-SIGEXP-FORMATTER (OBJECT)

DBUS-TYPE-SIGNATURE (OBJECT)

DBUS-TYPE-SIGNATURE-PARSER (OBJECT)

DBUS-TYPE-TABLE-BY-NAME (OBJECT)

DBUS-TYPE-TABLE-BY-SIGNATURE (OBJECT)

DBUS-TYPE-UNPACKER (OBJECT)

INTERFACE-METHODS (OBJECT)

OBJECT-INTERFACES (OBJECT)

SERVER-ADDRESS-PROPERTIES (OBJECT)

SERVER-ADDRESS-SOCKET-ADDRESS (OBJECT)

VARIABLE

Private

*AUTHENTICATION-MECHANISM-CLASSES*

Map names to AUTHENTICATION-MECHANISM classes or class names.

*KEYRINGS-DIRECTORY*

The directory holding context files containing cookies.

*SERVER-ADDRESS-CLASSES*

Map names to SERVER-ADDRESS classes or class names.

*STREAM-READ-POSITIONS*

A mapping from a stream (weakly referenced) to a read position.

Undocumented

*DBUS-TYPE-TABLE*

CLASS

Public

AUTHENTICATION-MECHANISM

Represents a way to authenticate a client with a server.

CONNECTION

Represents a DBUS connection to a server.

GENERIC-AUTHENTICATION-MECHANISM

Represents an authentication mechanism that is not supported by the D-BUS system.

GENERIC-SERVER-ADDRESS

Represents a server address whose transport is not supported by the DBUS system.

SERVER-ADDRESS

Represents a DBUS server address, consisting of a transport name and zero or more properties.

STANDARD-AUTHENTICATION-MECHANISM

Represents a standard authentication mechanism.

STANDARD-CONNECTION

Represents a standard DBUS connection.

STANDARD-SERVER-ADDRESS

Represents a standard server address with a transport name and a table of properties.

UNIX-CONNECTION

Represents a connection to a DBUS server over Unix Domain Sockets.

UNIX-SERVER-ADDRESS

Represents a DBUS server address with Unix Domain Sockets for transport.

Undocumented

BUS

ERROR-MESSAGE

MESSAGE

METHOD-CALL-MESSAGE

METHOD-RETURN-MESSAGE

SIGNAL-MESSAGE

SOCKET-CONNECTION-MIXIN

STANDARD-MESSAGE

Private

Undocumented

DBUS-TYPE

DBUS-TYPE-TABLE

INTERFACE

METHOD

OBJECT

CONDITION

Public

DBUS-ERROR

The supertype for errors related to the DBUS system.

Undocumented

AUTHENTICATION-ERROR

ENTRY-REPLACEMENT-ATTEMPT

INEXISTENT-ENTRY (DESIGNATOR IF-DOES-NOT-EXIST)

METHOD-ERROR

CONSTANT

Public

Undocumented

MESSAGE-NO-AUTO-START

MESSAGE-NO-REPLY-EXPECTED