Definition at line 36 of file TextSearchConnector.h. References ILOG_DEBUG, mConnected, mSocket, mTextPort, and mTextServer. Referenced by Query(). 00037 { 00038 if (mConnected) 00039 return; 00040 ILOG_DEBUG("establishing connection... "); 00041 try { 00042 mSocket = new TCPSocket(mTextServer, mTextPort); 00043 } catch (SocketException e) { 00044 ILOG_DEBUG("Could not connect to server."); 00045 mConnected = false; 00046 return; 00047 } 00048 mConnected = true; 00049 ILOG_DEBUG("connection established."); 00050 }
|