/sixsockets

Simple code examples using IPv6 sockets.

Primary LanguageC

sixsockets

Build Status Coverity Scan

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 address
  • bannergrab6.c tcp banner grabber
  • wisdomsrv6.c udp server talking about the sound of silence
  • oracle6.c udp client asking a server for wisdom
  • mcsnoop6.c snoop icmpv6 messages usind a raw socket
  • flowgen6.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.