DBus-Sharp and TCP/IP
Pavel Strashkin
pavel.strashkin at gmail.com
Wed Aug 10 16:25:16 PDT 2011
http://gitweb.ndesk.org/?p=dbus-sharp;a=blob;f=examples/TestServerTcp.cs;h=0e72137be30f56db2e0ad46078138cf5f0c7e8ad;hb=HEAD
Here is an example. You should check for "if (!isServer) {" section.
2011/8/10 Stefan Siller <stfs1 at msn.com>:
> Thanks for the fast answer,
>
> It is a native .NET Implementation but the connection string should be ok:
> with Wireshark I can even see that the dbus-daemon accepts the anonymous
> authentication.
> The problem is that I get an error from the dbus-sharp library.
>
> I can only see examples for local IPC with dbus-sharp and so I'm not sure if
> remote connections are working well with it.
> So I'm searching for a tested example.
>
> Regards,
>
> Stefan
>
> -----Ursprüngliche Nachricht-----
> Von: xaka2004 at gmail.com [mailto:xaka2004 at gmail.com] Im Auftrag von Pavel
> Strashkin
> Gesendet: Donnerstag, 11. August 2011 01:02
> An: Stefan Siller
> Cc: DBus Mailing List
> Betreff: Re: DBus-Sharp and TCP/IP
>
> Hi Stefan,
>
> I'm not familar with a dbus-sharp, but if it's a binding to libdbus then the
> only thing what you need is a connection string like
> "tcp:host=192.168.0.1,port=1234" which you should pass to dbus connection
> factory method.
> If it isn't a binding, but the native .NET implementation, then i have no
> idea yet.
>
> 2011/8/10 Stefan Siller <stfs1 at msn.com>:
>> Hello,
>>
>>
>>
>> I am using DBus for „on System IPC“ on my linux device and I also want
>> to control some Applications from remote PC’s (Linux and Windows)
>>
>>
>>
>> With the last stable version, I configured the dbus-daemon to listen
>> on tcp/ip and with D-Feet D-Bus Debugger I have access to my remote
>> applications -> seems to work great.
>>
>>
>>
>> On Windows, I want to attache the DBus interface to a .NET application.
>>
>> That’s why I played a little with „dbus-sharp-0.7.0“ where a
>> dbus-monitor example is included, but it doesn’t use tcp/IP
>> communication and somehow I have Problems to connect.
>>
>>
>>
>> Now my Question:
>>
>> Is there any .NET Sample available that connects via tcp/IP?
>>
>>
>>
>> Thanks a lot and best regards,
>>
>>
>>
>> Stefan
>>
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
>>
>>
>
>
More information about the dbus
mailing list