tcpecho
TCP Echo Server
Simple single threaded, poll based TCP echo server. This example implements the TCP Echo Server from W. Richard Stevens “UNIX Network Programming” Book. Contributed by Max Holtberg.
See also examples/nettest
CONFIG_EXAMPLES_TCPECHO=y
– Enables the TCP echo server.CONFIG_XAMPLES_TCPECHO_PORT
– Server Port, default80
.CONFIG_EXAMPLES_TCPECHO_BACKLOG
– Listen Backlog, default8
.CONFIG_EXAMPLES_TCPECHO_NCONN
– Number of Connections, default8
.CONFIG_EXAMPLES_TCPECHO_DHCPC
– DHCP Client, defaultn
.CONFIG_EXAMPLES_TCPECHO_NOMAC
– Use Canned MAC Address, defaultn
.CONFIG_EXAMPLES_TCPECHO_IPADDR
– Target IP address, default0x0a000002
.CONFIG_EXAMPLES_TCPECHO_DRIPADDR
– Default Router IP address (Gateway), default0x0a000001
.CONFIG_EXAMPLES_TCPECHO_NETMASK
– Network Mask, default0xffffff00
.