public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Zbyszek <dzidoz@poczta.fm>
To: mailing list <bluez-users@lists.sourceforge.net>
Subject: [Bluez-users] Problem with l2test
Date: 28 Feb 2004 18:34:02 +0100	[thread overview]
Message-ID: <20040228173402.ECDBD1EC7AB@front.interia.pl> (raw)

Hi all

I have problem. This is my part of the simple program.
=20
#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=3D"00:10:60:A5:F4:4C";
    int s,i;
    uint8_t id;

    if (( s=3Dsocket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)) < 0)
    {
=09perror("Can't create socket !!!");
=09exit(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?

regards
Zbyszek


-------------------------------------------------------
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

             reply	other threads:[~2004-02-28 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-28 17:34 Zbyszek [this message]
2004-02-28 19:14 ` [Bluez-users] Problem with l2test 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=20040228173402.ECDBD1EC7AB@front.interia.pl \
    --to=dzidoz@poczta.fm \
    --cc=bluez-users@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox