public bool TestConnect(int iPort) { bool bRetVal = m_oSocket.Connect(_ipaddress, iPort); m_oSocket.Disconnect(); return bRetVal; }