1. create stunnel,  listen port=127.0.0.1:5222, connect port=server:5223
2. client login ,   connect port=127.0.0.1:5222
3. client message
