rename mSock to mTcpSock and add new method to get current target mode