[DGD] Big Endian Conversion

Felix A. Croes felix at dworkin.nl
Sat Sep 25 13:38:17 CEST 2010


Neil McBride <neil at dogl.net> wrote:

> Perhaps.  The new handshake is relatively simple, but it requires  
> taking a 32-bit integer and expressing it as a big-endian 32-bit  
> number which is an aspect I'm struggling with.  Is there a simple way  
> to go about that in DGD that I've not found in the documentation?  For  
> example, python and php both have the pack function which does this  
> quite easilly.
>
> Any help with that would be greatly appreciated.

Perhaps lpcssh can serve as an example:

    http://sourceforge.net/projects/lpcssh/develop

The relevant code is in lib/ssh_utils.c.

Regards,
Felix Croes



More information about the DGD mailing list