From: Stephen Crane <steve.crane@rococosoft.com>
To: bluez-devel@lists.sourceforge.net
Cc: marcel@holtmann.org
Subject: specifying client-side link mode properties before connect()
Date: Wed, 31 Mar 2004 15:42:56 +0100 [thread overview]
Message-ID: <1080744176.1907.15.camel@baroque.rococosoft.com> (raw)
Hi,
[I think I may have asked something along these lines before, but I
can't remember what the outcome was...]
I have a server application which can specify the link mode requirements
of incoming connections using setsockopt(sock, SOL_L2CAP, L2CAP_LM, opt,
sizeof(opt)). This works fine, if a client can't meet the requirements,
no connection is made and the server's accept() sees nothing.
However I'd now like to be able to specify these requirements to the
connect() call on the client-side. That is, I'd like to call setsockopt
specifying the client's requirements (master, auth, encrypt) before
calling connect(). While I can /do/ this, the LM parameters seem to have
no effect. For example, I can set the L2CAP_LM_MASTER flag on both
sides, yet a connection is still established.
I suppose my question really is: are there any plans to implement this?
Or is the usual answer (to send a patch) the correct one :-)?
Thanks,
Steve
--
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
steve.crane@rococosoft.com +353-1-6601315 (ext 209)
next reply other threads:[~2004-03-31 14:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-31 14:42 Stephen Crane [this message]
2004-03-31 14:52 ` [Bluez-devel] Re: specifying client-side link mode properties before connect() Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1080744176.1907.15.camel@baroque.rococosoft.com \
--to=steve.crane@rococosoft.com \
--cc=bluez-devel@lists.sourceforge.net \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox