Changes to socketmodule.cc
Merge branch 'master' of github.com:BjarniB/ikaros
Added states