sixsockets
Simple code examples using IPv6 sockets. Good for educational use and beginner-level training courses.
Example Code
addrsrv6.c
tcp server that returns the client's ipv6 addressbannergrab6.c
tcp banner grabberwisdomsrv6.c
udp server talking about the sound of silenceoracle6.c
udp client asking a server for wisdommcsnoop6.c
snoop icmpv6 messages usind a raw socketflowgen6.c
send udp datagrams flows with random flow label in ipv6 header
License
Copyright (c) 2013-2015, Dan Luedtke mail@danrl.de
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.