All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple client connections?
@ 2015-10-13 23:45 Mark Spruiell
  2015-10-14 12:38 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Spruiell @ 2015-10-13 23:45 UTC (permalink / raw)
  To: linux-bluetooth

We'd like to be able to establish multiple simultaneous client
connections to the same service, both from a single process and from
multiple processes. (Essentially, we'd like to create bluetooth socket
connections just like we can for regular TCP socket connections, for
example.)

My client does the following:

* Gets a private connection to the system bus
* Calls GetManagedObjects to locate the device corresponding to the
target address
* Calls RegisterProfile with a unique object path and the target UUID
* Calls ConnectProfile on the target device with the target UUID
* Receives a NewConnection call with the file descriptor
* Uses the file descriptor like a regular socket
* When finished, calls DisconnectProfile, waits for it to complete,
and closes the socket

This works correctly. However, when I try to start another instance of
the client process and connect to the same service, this second
connection attempt fails. The first connection remains active and
continues to work. This second client would have registered its own
client profile with a unique object path and the same target UUID.

Is it possible for a single host to establish multiple connections to
the same service?

Thanks,
Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-14 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-13 23:45 Multiple client connections? Mark Spruiell
2015-10-14 12:38 ` Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.