add volatile type to tcpclient var and networkstream var