public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Problem with l2test
@ 2004-02-28 17:34 Zbyszek
  2004-02-28 19:14 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Zbyszek @ 2004-02-28 17:34 UTC (permalink / raw)
  To: mailing list

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

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

end of thread, other threads:[~2004-02-28 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-28 17:34 [Bluez-users] Problem with l2test Zbyszek
2004-02-28 19:14 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox