Ruby socket example