On Fri, 14 Sep 2001, NunoACHenriques wrote: > I run the gimp-script-fu-server (Gimp 1.2.1 for Linux) and I have a C > program that opens a TCP socket to it (port 10008). I get connected but when > I send a simple command like "(set! x)" the server shutdown the socket?!... > :-( What am I doing wrong? > The command must be prefixed by a 3-byte header that contains a magic number and the 16-bit length of the command. Unfortunately I don't have the source code handy right now, but I believe the magic number is 'G' or something, and the length is MSB,LSB. -Dave -------------------------------------------------------------------------- http://www.flamingtext.com/ * FREE buttons, bullets, dividers and backgrounds * FREE custom heading, banner and interface graphics * FREE clipart and wallpaper