tcpclient.getStream only can be used after socket connected