From: Marcel Holtmann <marcel@holtmann.org>
To: Zbyszek <dzidoz@poczta.fm>
Cc: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Problem with l2test
Date: Sat, 28 Feb 2004 20:14:17 +0100 [thread overview]
Message-ID: <1077995657.2843.91.camel@pegasus> (raw)
In-Reply-To: <20040228173402.ECDBD1EC7AB@front.interia.pl>
Hi Zbyszek,
> I have problem. This is my part of the simple program.
>
> #include <netinet/in.h>
> #include <arpa/inet.h>
> #include <resolv.h>
> #include <netdb.h>
> #include <sys/socket.h>
>
> #include <bluetooth/bluetooth.h>
> #include <bluetooth/l2cap.h>
> //Domyslne
> bdaddr_t bdaddr;
> int main()
> {
> struct sockaddr_l2 addr;
> char buf[2048];
> char str[18];
> char *adres="00:10:60:A5:F4:4C";
> int s,i;
> uint8_t id;
>
> if (( s=socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)) < 0)
> {
> perror("Can't create socket !!!");
> exit(1);
> }
> }
>
> Exactly at this moment error appears.
> Even when I try start the program "l2test" I see communique
> l2test[4045]: Can't create socket. No such file or directory(2)
> So I'm asking you, could you tell me where did I make mistake?
load the L2CAP kernel module.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
prev parent reply other threads:[~2004-02-28 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-28 17:34 [Bluez-users] Problem with l2test Zbyszek
2004-02-28 19:14 ` Marcel Holtmann [this message]
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=1077995657.2843.91.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-users@lists.sourceforge.net \
--cc=dzidoz@poczta.fm \
/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