[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[1]: struct.el -- a package to encode/decode binary data

From: Eric M. Ludlam
Subject: Re[1]: struct.el -- a package to encode/decode binary data
Date: Mon, 18 Mar 2002 20:38:20 -0500

>>> address@hidden (Kim F. Storm) seems to think that:
>While writing a package that sends and receives datagrams using the
>new make-network-process functionality, I quickly found that I needed
>to be able to encode and decode binary data structures, so I came up
>with the following package (struct.el).
>I'd like to hear if something like this already exists, or if others
>find it should be added to emacs (with more complete documentation of
>course).  [Also, the struct-pack function doesn't work with nested
>data, but I'll fix that if there is an interest in this package].
>------------------------- struct.el --------------------
>;;; struct.el --- basic data structure packing and unpacking.
>;; Copyright (C) 2002 Free Software Foundation, Inc.
  [ ... ]

I wrote something for packing X messages via a TCP socket.  You could
define the message in a vector and it would pack and unpack the item.
It was X centric, and you could encode sizes for X's dynamic length
fields.  The key to what I built was to make defining the 100's of X
messages easy.


It was over 5 years ago when I wrote it so it worked with some pretty
old versions of Emacs, but I could help someone get it working if

It was really quite nifty, if somewhat esoteric.


          Eric Ludlam:                 address@hidden, address@hidden
   Home: www.ultranet.com/~zappo            Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net               GNU: www.gnu.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]