Example Server Code for subnet binding
This directory contains a number of examples that implement a TCP and a UDP server that binds to an IPv6 subnet. The
code is written for Debian Linux, and may require some changes to compile and run on other systems. The subnet
binding on the server requires a local routing table entry for the subnet - which may not be possible on
- tcp-server.c - A TCP server, invoked by tcp-server <port_number> which
will set up an IPv6-only TCP server listening on the specified port number. The server can be reached by a simple telnet connection.
- udp-server.c - A UDP server, invoked by udp-server <port_number> which
will set up an IPv6-only UDP server listening on the specified port number. The server can be reached by a UDP
client, such as udp-client.c. The UDP client is invoked by udp-client <IPv6-address> <port_number>
- test-server.c - An example of a more generic server that supports IPv6 and IPv6, TCP and UDP and
attempts to bind on all available IP addresses.