linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: john smith <roofass@hotmail.com>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] (Newbie) Echo server and transferring raw data
Date: Wed, 11 Aug 2004 21:34:59 +0200	[thread overview]
Message-ID: <1092252899.4564.244.camel@pegasus> (raw)
In-Reply-To: <BAY22-F14OIvmnGlToQ00029178@hotmail.com>

Hi John,

> I'm pretty new to Bluez and network programming and I'd appreciate if I 
> anybody could give me some pointers on passing raw data between two hosts.
> 
> I've been playing about with hcitools and l2ping and I've got a pand 
> connection happening between two pc's.
> 
> As an exercise I'd just like to send some data between the server and client 
> and maybe build up my own simple application protocol.
> 
> My question is ( and I applogise if this sounds dumb), is there an easy way 
> to do this? I've been looking at the l2ping code and I'm thinking about 
> experimenting with this. Or is it possible to take an Echo program written 
> to use IP sockets and simply substitute in things like 'socket(PF_BLUETOOTH, 
> SOCK_RAW, BTPROTO_L2CAP)'  where appropriate.

take a look at the source code of l2test and rctest. If you want to port
a TCP application then use RFCOMM as layer, because you will need a
stream socket.

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

      reply	other threads:[~2004-08-11 19:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-11 11:41 [Bluez-devel] (Newbie) Echo server and transferring raw data john smith
2004-08-11 19:34 ` 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=1092252899.4564.244.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=roofass@hotmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).