dee

IPC communication

Asked by Pavol Klačanský on 2012-03-27

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:
2012-03-30
Last query:
2012-03-30
Last reply:
2012-03-30
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).

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