Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to pass file descriptor through dbus call in python

Reply
Thread Tools

How to pass file descriptor through dbus call in python

 
 
Zhang, Zhenhua
Guest
Posts: n/a
 
      05-12-2010
Hi,
Hi,

DBus 1.3 supports passing file descriptor through dbus method call. So I am writing a python test case to verify my interface. Can someone answer my question: how to pass a file descriptor through python-dbus call? For example:

import os

m, s = os.openpty()

bus = dbus.SystemBus()
obj = dbus.Interface(bus.get_object('org.xxx', '/', interface)
obj.Create(m)

Python tells me that: org.freedesktop.DBus.Error.UnknowMethod: Method 'Create' with signature "i" on interface 'xxx' doesn't exist. Obviously it interprets 'm' as 'i' instead of 'h'.

Regards,
Zhenhua

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
simple dbus python problem ... please help bob Python 1 07-29-2006 08:37 PM
python and dbus - beginner seeking some help bob Python 1 07-28-2006 06:12 PM
python and dbus - beginner seeking some help bob Python 0 07-28-2006 06:09 PM
how to pass a file descriptor in a swig module kj.kjn Python 2 07-03-2003 07:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57