From: Fabien Chevalier <fabchevalier@free.fr>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] New bluetooth-headset release 20061109 : nickname 'dogfood' ; -)
Date: Tue, 21 Nov 2006 21:05:17 +0100 [thread overview]
Message-ID: <45635BFD.7070404@free.fr> (raw)
In-Reply-To: <45634AFC.909@vasmac.com>
Hi Jose,
It took me a while to figure out what was wrong...
Having a look to man 7 unix you will see that :
sun_family always contains AF_UNIX. sun_path contains the
zero-terminated pathname of the socket in the file system.
So no, thank you, i think my code is fine ;-)
If there are displays issues and something needs fixing i think you
should fix your monitoring application instead.
Cheers,
Fabien
> Hi Fabien,
>
> I have a minor suggestion regarding the binding of the unix
> socket in daemon.c. Currently, the socket name registered
> contains nul characters. It would be better to register the
> name without the extra fill for monitoring applications.
>
> Jose
>
> --- daemon.c 2006-05-18 10:30:06.000000000 -0400
> +++ ../../cvs/alsa-plugin-sco/headsetd/new/daemon.c 2006-09-01
> 19:18:04.000000000 -0400
> @@ -73,7 +73,7 @@
> struct sockaddr_un pcm_srv_sock = {
> AF_UNIX, PCM_SERVER_SOCKET
> };
> - if(bind(_appl_srv_sockfd, (struct sockaddr *)&pcm_srv_sock,
> sizeof(pcm_srv_sock)) != 0) {
> + if(bind(_appl_srv_sockfd, (struct sockaddr *)&pcm_srv_sock,
> __SOCKADDR_COMMON_SIZE+sizeof(PCM_SERVER_SOCKET)-1) != 0) {
> syslog(LOG_ERR, "bind(_appl_srv_sockfd): %s", strerror(errno));
> goto error;
> }
> @@ -96,7 +96,7 @@
> struct sockaddr_un ctl_srv_sock = {
> AF_UNIX, CTL_SERVER_SOCKET
> };
> - if(bind(_appl_ctlsrv_sockfd, (struct sockaddr *)&ctl_srv_sock,
> sizeof(ctl_srv_sock)) != 0) {
> + if(bind(_appl_ctlsrv_sockfd, (struct sockaddr *)&ctl_srv_sock,
> __SOCKADDR_COMMON_SIZE+sizeof(CTL_SERVER_SOCKET)-1) != 0) {
> syslog(LOG_ERR, "bind(_appl_ctlsrv_sockfd): %s",
> strerror(errno));
> goto error2;
> }
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-11-21 20:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-09 20:42 [Bluez-devel] New bluetooth-headset release 20061109 : nickname 'dogfood' ; -) Fabien Chevalier
2006-11-20 22:33 ` Jose Vasconcellos
2006-11-20 23:06 ` Brad Midgley
2006-11-21 7:35 ` Marcel Holtmann
2006-11-21 15:03 ` [Bluez-devel] SCO flow control (Was: New bluetooth-headset release 20061109) Jose Vasconcellos
2006-11-21 15:26 ` Marcel Holtmann
2006-11-21 17:26 ` Jose Vasconcellos
2006-11-21 17:53 ` Marcel Holtmann
2006-11-21 18:52 ` [Bluez-devel] New bluetooth-headset release 20061109 : nickname 'dogfood' ; -) Jose Vasconcellos
2006-11-21 20:05 ` Fabien Chevalier [this message]
2006-11-21 20:39 ` Jose Vasconcellos
2006-11-22 11:12 ` Fabien Chevalier
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=45635BFD.7070404@free.fr \
--to=fabchevalier@free.fr \
--cc=bluez-devel@lists.sourceforge.net \
/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 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.