various socket example programs