Merge pull request #16 from tothfn/master

Fixed the bug that the sockets cannot be connected