Changeset 40272 in project


Ignore:
Timestamp:
07/10/21 14:04:58 (3 weeks ago)
Author:
ecloud
Message:

dbus-monitor output; more little fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/dbus

    r40271 r40272  
    147147Provide a handler to be called when the current process receives a
    148148D-Bus signal which matches the given context and the given signal name.
    149 Start a SRFI-18 thread to poll for incoming signals (unless polling
     149Start a [[/egg/srfi-18|SRFI-18]] thread to poll for incoming signals (unless polling
    150150has been disabled on this bus).
    151151
     
    155155Provide a handler (a method body) to be called when the current
    156156process receives a D-Bus message which matches the given context and
    157 the given method name.  Start a [[http://wiki.call-cc.org/eggref/5/srfi-18|SRFI-18]] thread to poll for incoming
     157the given method name.  Start a [[/egg/srfi-18|SRFI-18]] thread to poll for incoming
    158158messages (unless polling has been disabled on this bus).
    159159
     
    223223</enscript>
    224224
    225 That example called a method but it did not expect any return values.
    226 
    227 Now suppose you want to simulate the car, so you can use the above example to control your own car rather than the Qt one.  And suppose you want to poll for messages manually rather than via the default SRFI-18 polling thread:
     225That example called a method but it did not expect any return values.  But if you are watching with {{dbus-monitor}}, you can see that a response was returned:
     226<enscript highlight=c>
     227method call time=1625916883.288564 sender=:1.1458 -> destination=org.example.CarExample serial=2 path=/Car; interface=org.example.Examples.CarInterface; member=turnRight
     228method return time=1625916883.289087 sender=:1.1455 -> destination=:1.1458 serial=9 reply_serial=2
     229</enscript>
     230
     231Now suppose you want to simulate the car, so you can use the above example to control your own car rather than the Qt one.  And suppose you want to poll for messages manually rather than via the default [[/egg/srfi-18|SRFI-18]] polling thread:
    228232
    229233<enscript highlight=scheme>
Note: See TracChangeset for help on using the changeset viewer.