Issue with _dbus_write_socket on windows

Thiago Macieira thiago at kde.org
Sun Nov 19 10:25:29 PST 2006


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.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20061119/40fec2cc/attachment.pgp


More information about the dbus mailing list