The Simple Sockets Library makes sockets easy to use and comes as public domain source code. It resembles C's file I/O, uses whatever port is available, has named servers and port reuse, streaming/blocking sockets used, polling support, blocking/selection support via numerous functions, timeout control and firewall support.
A command line tool to output your database schema and data in diff-able form.