1/* 2 * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7/* Number of buffers to use for each echo socket */ 8#define NUM_UDP_BUFS 510 9#define NUM_TCP_BUFS 510 10 11 12/* Size of initial TCP socket reads */ 13#define TCP_READ_SIZE 1400 14 15/* Max size of UDP socket reads */ 16#define UDP_READ_SIZE 1400 17 18/* Size of each allocation used for each send and receive. Must be large enough 19 * to hold buffer and request/result information. */ 20#define BUF_SIZE 2048 21 22/* This length must be greater than NUM_UDP_BUFS + NUM_TCP_BUFS */ 23#define PICOTCP_SOCKET_ASYNC_QUEUE_LEN 1024 24#define PICOTCP_SOCKET_ASYNC_POOL_SIZE (BUF_SIZE * PICOTCP_SOCKET_ASYNC_QUEUE_LEN) 25#define PICOSERVER_HEAP_SIZE 0x800000 26