1/**
2 * \file
3 * \brief net socket server shared parameters
4 */
5
6/*
7 * Copyright (c) 2018, ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8006 Zurich. Attn: Systems Group.
13 */
14
15#ifndef NETSS_H_
16#define NETSS_H_
17
18//#define NETSS_DEBUG
19
20// parameters
21#define NO_OF_BUFFERS 128
22#define BUFFER_SIZE 16384
23#define NETSOCKET_LOOP_ITER 100
24#define MAX_SEND_FRAMES 2
25
26//#define POLLING
27
28#if defined(NETSS_DEBUG)
29#define NET_SOCK_DEBUG(x...) do { printf("net_sock:%s.%d:%s:%d: ", \
30            disp_name(), disp_get_core_id(), __func__, __LINE__); \
31                printf(x);\
32        } while (0)
33#else
34#define NET_SOCK_DEBUG(x...) ((void)0)
35#endif
36
37#endif /* NETSS_H_ */
38