implement connect.
[WIP] xmlsocket