dee

IPC communication

Asked by Pavol Klačanský

Hi, I need to share this data structure over DBus (now I am converting it to JSON), is it possible with libdee? can it be shared like between 1 Server and 10 Clients? thanks, if so, I am going to port it after first release (now I use dbus signals and methods)

feed = {
                'url': url,
                'title': d.feed.title,
                'link': d.feed.link,
                'refresh_rate': DEFAULT_REFRESH_RATE,
                'limit': DEFAULT_LIMIT,
                'items': {}
            }

            # Store items in list
            for entry in d.entries:
                feed['items'][str(uuid.uuid1())] = {
                    'title': entry.title,
                    'link': entry.link,
                    'date': str(datetime.fromtimestamp(
                        time.mktime(entry.date_parsed))),
                    'read': False
                }

Question information

Language:
English Edit question
Status:
Solved
For:
dee Edit question
Assignee:
No assignee Edit question
Solved by:
Pavol Klačanský
Solved:
Last query:
Last reply:
Revision history for this message
Michal Hruby (mhr3) said :
#1

Yes, all you need is DeeSharedModel (optionally you can use private communications channel if DBus doesn't suit your needs using DeeServer and DeeClient).

Revision history for this message
Pavol Klačanský (pavolzetor-deactivatedaccount) said :
#2

Thanks, I will look at it, now I use DBus directly, so maybe after 1.0 I will rewrite it