Issue with _dbus_write_socket on windows

Peter Kümmel syntheticpp at
Sun Nov 19 10:42:44 PST 2006

Thiago Macieira wrote:
> Christian Ehrlicher wrote:
>> Currently this is not supported, but I think it should be possible by
>> adding a userid or something else to the shm name. But the bigger
>> problem is - how can I avoid using the same port twice? And how can I
>> react when the port is already in use?
> Set the port to 0 before you call bind(). That will cause the OS to 
> automatically select a port for you. Then do a getsockname() to retrieve 
> the port it did select.

Exactly, that's the way we've figured out, thanks.


More information about the dbus mailing list