Just some random socket snnipets