TcpClientm_Client=newTcpClient(); m_Client.Connect(serverIP,int.Parse(serverPort)); m_SendBuffer=HexStrTobyte(m_CmdSend); m_NetStream=m_Client.GetStream(); m_NetStream.Write(m_SendBuffer,0,m_SendBuffer.Length); m_NetStream.Flush();