Debug when connecting socket

Added debug info to track errors when bind is called on a socket.
Merge branch 'master' of https://github.com/ProjetM1MPRI2013/central
Merge branch 'master' of https://github.com/ProjetM1MPRI2013/central
Fix for ipv6/ipv4 bug