Yeah. If I did it again then I'd use the OpenTCP stack. At the time however, I didn't have that extra kb out of the buffers so wedging it all into 256 bytes seemed a little insane. It's a Cypress Micro PSoC and it only has 256 bytes of RAM and 16KB of EEPROM to store everything else. It's not the most powerful of platforms