vs_integration/src/SocketConnection.cpp
//-----------------------------------------------------------------------------
// This public function reads the command 
//-----------------------------------------------------------------------------
This public function reads the command
This public function reads the command
void SocketConnection::ProcessClientsRequests() {
CString cmd;
    POSITION pos = m_Clients.GetHeadPosition();
    while(pos!=NULL) {
        int socket = m_Clients.GetAt(pos);
        if(CheckSocket(socket)==true) {
			if(ReadCommand(socket,cmd)==false) {
				RemoveClient(socket);
				return;
			} else {
				ProcessCommand(socket,cmd);
			}
			return;
		}
		m_Clients.GetNext(pos);
    }
}
void SocketConnection :: ProcessClientsRequests ( ) { CString cmd ; POSITION pos = m_Clients . GetHeadPosition ( ) ; while ( pos != NULL ) { int socket = m_Clients . GetAt ( pos ) ; if ( CheckSocket ( socket ) == true ) { if ( ReadCommand ( socket , cmd ) == false ) { RemoveClient ( socket ) ; return ; } else { ProcessCommand ( socket , cmd ) ; } return ; } m_Clients . GetNext ( pos ) ; } }
This public function reads the command
This public function reads the command