All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pedro Monjo Florit <pedro.monjo@futurlink.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Re: Fw: Re: Can't able to send data in both direction
Date: Mon, 07 Mar 2005 09:18:58 +0100	[thread overview]
Message-ID: <422C0E72.7030108@futurlink.com> (raw)
In-Reply-To: <7aa80ced050306210062f2ad1e@mail.gmail.com>

Mohan K wrote:
>Hi Sebastian,
>                  Thanks. The send program without closing the
>connection for each time is working fine. But on the recv side I am
>unable to read the data immediately.  I am using recv() function
>available in the bluez. After recv() fn I am using printf(). Until I
>close the connection it is not printing the received data.
>
>Thanks & Regards,
>Mohan
>
>
>
>On Fri, 04 Mar 2005 15:14:03 +0100, Sebastian Roth <sebiroth@web.de> wrote:
>  
>>Hi Mohan,
>>
>>why do you connect for each keypress?
>>Just connect on programm startup then `do' `send' `while' `getch'
>>and close the connection on programm shutdown.
>>This should avoid the delay!
>>
>>Best regards,
>>Sebastian
>>
>>    
>
Hi Mohan:

I have done a program which basically does the same thing: and echo 
server and its couterpart echo client, over bluetooth, of course. In the 
client part, I open the connection at the begining, read line by line 
and send the complete line with the trailing '\n' in just one send() 
call. The server reads the line with recv() and sends it back to the 
client, including '\n' again. This works perfectly for me.

Regards,

Pedro


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2005-03-07  8:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <004401c5207b$c13a3210$4100a8c0@benjamin>
2005-03-04  5:48 ` Fw: [Bluez-users] Re: Can't able to send data in both direction Mohan K
2005-03-04 10:47   ` Marcel Holtmann
2005-03-04 12:57     ` Mohan K
2005-03-04 14:14   ` [Bluez-users] Re: Fw: " Sebastian Roth
2005-03-07  5:00     ` Mohan K
2005-03-07  8:18       ` Pedro Monjo Florit [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=422C0E72.7030108@futurlink.com \
    --to=pedro.monjo@futurlink.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.