Port scanning and monitoring with Ruby and TCP sockets

Craig Webster has posted several times over the few days about his adventures with sockets in Ruby. He provides nice code examples (even doing socket stuff direct from irb!) and his explanations are useful if you know what you're doing with Ruby, but haven't tried doing any TCP or socket work yet:

I hope Craig continues to post stuff like this as his blog could soon become a must-read.