On Fri, Apr 11, 2008 at 02:12:57PM +0100, prakash chowbey wrote:
> what the function tvb_get_ntohs() does, can u plz give clear idea
> including syntax and argument?
It works similar to the way ntohs() works, but does this with data from
a tvbuff. ntohs() converts a network byte order short (16-bit) to a
host byte order short.
>From doc/README.developer:
Network-to-host-order accessors for 16-bit integers (guint16), 24-bit
integers, 32-bit integers (guint32), and 64-bit integers (guint64):
guint16 tvb_get_ntohs(tvbuff_t*, gint offset);
Steve