mtptransports/mtpptpiptransport/ptpipplugin/src/cptpipconnection.cpp
changeset 54 4dc88a4ac6f4
parent 49 c20dd21d1eb4
equal deleted inserted replaced
52:866b4af7ffbe 54:4dc88a4ac6f4
   286 	}
   286 	}
   287 
   287 
   288 /**
   288 /**
   289  Called when an error occurs in the RunL 
   289  Called when an error occurs in the RunL 
   290  */
   290  */
       
   291 #ifdef OST_TRACE_COMPILER_IN_USE
   291 TInt CPTPIPConnection::RunError(TInt aError )
   292 TInt CPTPIPConnection::RunError(TInt aError )
       
   293 #else
       
   294 TInt CPTPIPConnection::RunError(TInt /*aError*/ )
       
   295 #endif
   292 	{
   296 	{
   293 	OstTraceFunctionEntry0( CPTPIPCONNECTION_RUNERROR_ENTRY );
   297 	OstTraceFunctionEntry0( CPTPIPCONNECTION_RUNERROR_ENTRY );
   294 	
   298 	
   295 	OstTrace1( TRACE_NORMAL, CPTPIPCONNECTION_RUNERROR, "PTPIP ERROR: Error received is %d", aError );
   299 	OstTrace1( TRACE_NORMAL, CPTPIPCONNECTION_RUNERROR, "PTPIP ERROR: Error received is %d", aError );
   296 	
   300 	
   297 
       
   298 	// Cancel all the outstanding requests.
   301 	// Cancel all the outstanding requests.
   299 	Cancel( );
   302 	Cancel( );
   300 
   303 
   301 	// Stop the connection, if necessary.
   304 	// Stop the connection, if necessary.
   302 	StopConnection( );
   305 	StopConnection( );
  1387 	}
  1390 	}
  1388 
  1391 
  1389 /**
  1392 /**
  1390  * Invoked by the SocketHandler when there is an error.
  1393  * Invoked by the SocketHandler when there is an error.
  1391  */
  1394  */
       
  1395 #ifdef OST_TRACE_COMPILER_IN_USE
  1392 void CPTPIPConnection::HandleError(TInt aError)
  1396 void CPTPIPConnection::HandleError(TInt aError)
       
  1397 #else
       
  1398 void CPTPIPConnection::HandleError(TInt /*aError*/)
       
  1399 #endif
  1393 	{
  1400 	{
  1394 	OstTraceFunctionEntry0( CPTPIPCONNECTION_HANDLEERROR_ENTRY );
  1401 	OstTraceFunctionEntry0( CPTPIPCONNECTION_HANDLEERROR_ENTRY );
  1395 	OstTrace1( TRACE_NORMAL, CPTPIPCONNECTION_HANDLEERROR, "SocketHandler received an error=%d, stopping connection.", aError );
  1402 	OstTrace1( TRACE_NORMAL, CPTPIPCONNECTION_HANDLEERROR, "SocketHandler received an error=%d, stopping connection.", aError );
  1396 	
  1403 	
  1397 	StopConnection();
  1404 	StopConnection();