From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re[1]: struct.el -- a package to encode/decode binary data Date: Mon, 18 Mar 2002 20:38:20 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200203190138.g2J1cKN17854@beta.siege-engine.com> References: <5x1yehpj1w.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1016506094 11027 127.0.0.1 (19 Mar 2002 02:48:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2002 02:48:14 +0000 (UTC) Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16n9fa-0002rl-00 for ; Tue, 19 Mar 2002 03:48:14 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16n9kf-0000wd-00 for ; Tue, 19 Mar 2002 03:53:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16n8ak-0000iU-00; Mon, 18 Mar 2002 20:39:10 -0500 Original-Received: from choochoo.ultranet.com ([146.115.254.62] helo=beta.siege-engine.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16n8a4-0000OI-00 for ; Mon, 18 Mar 2002 20:38:29 -0500 Original-Received: (from zappo@localhost) by beta.siege-engine.com (8.11.6/8.11.2) id g2J1cKN17854; Mon, 18 Mar 2002 20:38:20 -0500 Original-To: emacs-devel@gnu.org In-Reply-To: <5x1yehpj1w.fsf@kfs2.cua.dk> (no-spam@cua.dk) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2017 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2017 >>> no-spam@cua.dk (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]. > >++kfs > >------------------------- 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. http://cedet.sourceforge.net/ http://cedet.sourceforge.net/ftp/X-0.3a.tar.gz 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 needed. It was really quite nifty, if somewhat esoteric. Eric -- Eric Ludlam: zappo@gnu.org, eric@siege-engine.com Home: www.ultranet.com/~zappo Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel