Enhanced CTorrent is a BitTorrent console client written in C and C++
http://www.rahul.net/dholmes/ctorrent/