Add some functions to handle the sockets
Merge branch 'master' of https://github.com/TankCommander/pythonCode