int timeout = 300ms; m_pTCPClient->Connect("127.0.0.1", "669", timeout); Is it consider add this parameter? thanks.