linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] (Newbie) Echo server and transferring raw data
@ 2004-08-11 11:41 john smith
  2004-08-11 19:34 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: john smith @ 2004-08-11 11:41 UTC (permalink / raw)
  To: bluez-devel

Hi there,

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.

I've been browsing the Howto's but I've only found info on comms between 
mobile phone's, or sharing internet connections.

thanks for reading,

John

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger



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

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

* Re: [Bluez-devel] (Newbie) Echo server and transferring raw data
  2004-08-11 11:41 [Bluez-devel] (Newbie) Echo server and transferring raw data john smith
@ 2004-08-11 19:34 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2004-08-11 19:34 UTC (permalink / raw)
  To: john smith; +Cc: BlueZ Mailing List

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

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

end of thread, other threads:[~2004-08-11 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 11:41 [Bluez-devel] (Newbie) Echo server and transferring raw data john smith
2004-08-11 19:34 ` Marcel Holtmann

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