]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/include/arch/lwipopts.h
receive timeouts options added to lwipopts.h
[pes-rpp/rpp-lwip.git] / src / include / arch / lwipopts.h
index 392369d095c74b6076cc37db013a1097400cc99e..1345ed4731cb66e4b17cea2ddefabcff359780bc 100644 (file)
 **                    TCPIP thread - used when NO_SYS defined to 0
 *****************************************************************************/
 #define TCPIP_THREAD_PRIO               0
-#define TCPIP_THREAD_STACKSIZE          500
+#define TCPIP_THREAD_STACKSIZE          1000
 
 /*****************************************************************************
 **                          Memory Options
 *****************************************************************************/
-#define MEM_ALIGNMENT                   4
-#define MEM_SIZE                        (30 * 1024) /* 30K */
-#define MEMP_NUM_PBUF                   48
-#define MEMP_NUM_TCP_PCB                16
-#define PBUF_POOL_SIZE                  96
+#define MEM_ALIGNMENT                   4 /* dflt 1 */
+#define MEM_SIZE                        1600 // (30 * 1024) /* 30K */ /* dflt 1600 */
+#define MEMP_NUM_PBUF                   16 // 48 /* dflt 16 */
+#define MEMP_NUM_TCP_PCB                5 // 16 /* dflt 5 */
+#define PBUF_POOL_SIZE                  16 // 96 /* dflt 16 */
 
 /*****************************************************************************
 **                           IP Options
 /*****************************************************************************
 **                           TCP  Options
 *****************************************************************************/
-#define TCP_WND                         4096   /* default is 2048 */
-#define TCP_MSS                         1500        /* default is 128 */
+#define TCP_WND                         2048 // 4096   /* default is 2048 */
+#define TCP_MSS                         128 // 1500        /* default is 128 */
 #define TCP_SND_BUF                     (4 * TCP_MSS)
 
 /*****************************************************************************
 #define PBUF_POOL_BUFSIZE               256
                                            /* default is LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)*/
 #define ETH_PAD_SIZE                    0
-#define LWIP_NETCONN                    0          /*default is 1*/
+#define MEMP_NUM_NETCONN                10
+#define LWIP_NETCONN                    1          /*default is 1*/
 
 /*****************************************************************************
 **                           Socket  Options
 *****************************************************************************/
 #define LWIP_SOCKET                     0           /* default is 1 */
 
+#define LWIP_SO_RCVTIMEO                0           /* enable receive timeout; default is 0 */
+
 /*****************************************************************************
 **                          Debugging options
 *****************************************************************************/
 /*****************************************************************************
 **                          Mbox options
 *****************************************************************************/
-#define TCPIP_MBOX_SIZE                 20
-#define DEFAULT_RAW_RECVMBOX_SIZE       20
-#define DEFAULT_UDP_RECVMBOX_SIZE       20
-#define DEFAULT_TCP_RECVMBOX_SIZE       20
-#define DEFAULT_ACCEPTMBOX_SIZE         20
+#define TCPIP_MBOX_SIZE                 10
+#define DEFAULT_RAW_RECVMBOX_SIZE       10
+#define DEFAULT_UDP_RECVMBOX_SIZE       10
+#define DEFAULT_TCP_RECVMBOX_SIZE       10
+#define DEFAULT_ACCEPTMBOX_SIZE         10
 
 
 #endif /* __LWIPOPTS_H__ */