According to Adam the contents of the uip_buf are never assumed to be valid accross events boundaries. The same holds true for file open-read/write-close cycles (at least for module loading and config file i/o).
This leads to the conclusion that the uip_buf and the file i/o buf (1024 bytes for Apple ProDOS 8 !) can be folded together. This means that we both
- save the 400 bytes used by the former uip_buf
- should have better network throughput due to new uip_buf size of 1022 bytes
diff --git a/contiki-apple2/conf/uip-conf.h b/contiki-apple2/conf/uip-conf.h
index 9fffc75..775546a 100644
--- a/contiki-apple2/conf/uip-conf.h
+++ b/contiki-apple2/conf/uip-conf.h
@@ -32,14 +32,15 @@
*
* This file is part of the Contiki Destop OS
*
- * $Id: uip-conf.h,v 1.1 2003/08/05 14:37:59 adamdunkels Exp $
+ * $Id: uip-conf.h,v 1.2 2005/02/17 22:45:03 oliverschmidt Exp $
*
*/
#ifndef __UIP_CONF_H__
#define UIP_CONF_MAX_CONNECTIONS 10
#define UIP_CONF_MAX_LISTENPORTS 10
-#define UIP_CONF_BUFFER_SIZE 400
+#define UIP_CONF_BUFFER_SIZE 1024 - 2
+#define UIP_CONF_EXTERNAL_BUFFER
#define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN