Somple socket example without twisted