All of lore.kernel.org
 help / color / mirror / Atom feed
From: "# Björn Specht #" <bspecht@gmx.net>
To: "bluez-devel@lists.sourceforge.net" <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] btohs,btohl, ...
Date: Wed, 9 Feb 2005 14:07:01 +0100	[thread overview]
Message-ID: <20050209140701.2cf50710@CleverSophie> (raw)

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

Hi all,

I implemented a client server over bluetooth and I was wondering if I need the Little Endian, Big Endien conversion functions btohs,btohl,htobs,htobl?

Do I need to convert every single byte? which is received or sent over my sock_stream socket?
If yes, should it look like this for the receiving case: btohs(buf[0]).... an so on for every byte?

Thanks in advance 
Björn

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2005-02-09 13:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09 13:07 # Björn Specht # [this message]
2005-02-09 13:19 ` [Bluez-devel] btohs,btohl, Marcel Holtmann
2005-02-09 13:38   ` # Björn Specht #
2005-02-09 13:57     ` Marcel Holtmann
2005-02-09 14:00       ` # Björn Specht #
2005-02-09 15:07       ` [Bluez-devel] omtu, imtu # Björn Specht #
2005-02-09 15:18         ` 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=20050209140701.2cf50710@CleverSophie \
    --to=bspecht@gmx.net \
    --cc=bluez-devel@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.