added basic functions to socket classes
Merge branch 'master' of https://github.com/shuxu94/submarine