telephonyprotocols/csdagt/script/SIO.CPP
changeset 42 3adadc800673
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
31:8ab6687fb94c 42:3adadc800673
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 /**
    18 /**
    19  @file Sio.cpp 
    19  @file Sio.cpp 
    20 */
    20 */
    21 
    21 
       
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "SIOTraces.h"
       
    26 #endif
       
    27 
    22 #include "SSCREXEC.H"
    28 #include "SSCREXEC.H"
    23 #include "SIO.H"
    29 #include "SIO.H"
    24 #include "SLOGGER.H"
       
    25 #include <networking/bca.h>
    30 #include <networking/bca.h>
    26 
    31 
    27 const TInt KChatterPriority=0;
    32 const TInt KChatterPriority=0;
    28 const TInt KCommReadPriority=10;
    33 const TInt KCommReadPriority=10;
    29 const TInt KCommWritePriority=20;
    34 const TInt KCommWritePriority=20;
    78 	}
    83 	}
    79 
    84 
    80 void CScriptIO::CreateChannel(TRequestStatus& aStatus)
    85 void CScriptIO::CreateChannel(TRequestStatus& aStatus)
    81 	{
    86 	{
    82 	ASSERT(iCreateAndShutdownStatus == NULL);
    87 	ASSERT(iCreateAndShutdownStatus == NULL);
    83 	__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),_L("Script:\tOpening Comm Port '%S'"), &iCommsChannel);
    88 	OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_CREATECHANNEL_1,"Script:\tOpening Comm Port '%S'", iCommsChannel);
    84 
    89 
    85 	iCommClosed = EFalse;
    90 	iCommClosed = EFalse;
    86 	TInt err = CommOpen(iCommsChannel);
    91 	TInt err = CommOpen(iCommsChannel);
    87 	if (err != KErrNone)
    92 	if (err != KErrNone)
    88 		{
    93 		{
    89 		__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),_L("Script: Error %d opening Comm Port"), err);
    94 		OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_CREATECHANNEL_2, "Script: Error %d opening Comm Port", err);
    90 		TRequestStatus* stat = &aStatus;
    95 		TRequestStatus* stat = &aStatus;
    91 		User::RequestComplete(stat, err);	
    96 		User::RequestComplete(stat, err);	
    92 		}
    97 		}
    93 	iCreateAndShutdownStatus = &aStatus;
    98 	iCreateAndShutdownStatus = &aStatus;
    94 	}
    99 	}
    95 
   100 
    96 void CScriptIO::CancelCreateChannel()
   101 void CScriptIO::CancelCreateChannel()
    97 	{
   102 	{
    98 	__FLOG_STMT(_LIT8(logString,"Script:\tCancelCreateChannel()");)
   103 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_CANCELCREATECHANNEL_1, "Script:\tCancelCreateChannel()");
    99 	__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString());
       
   100 	CommCancel();
   104 	CommCancel();
   101 	}
   105 	}
   102 
   106 
   103 void CScriptIO::InitializeComplete()
   107 void CScriptIO::InitializeComplete()
   104 	{
   108 	{
   105 	__FLOG_STMT(_LIT8(logString,"Script:\tInitializeComplete()");)
   109 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_INITIALIZECOMPLETE_1,"Script:\tInitializeComplete()");
   106 	__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString());
       
   107 	ASSERT(iCreateAndShutdownStatus);
   110 	ASSERT(iCreateAndShutdownStatus);
   108 	User::RequestComplete(iCreateAndShutdownStatus, KErrNone);
   111 	User::RequestComplete(iCreateAndShutdownStatus, KErrNone);
   109 	iCreateAndShutdownStatus = NULL;
   112 	iCreateAndShutdownStatus = NULL;
   110 	}
   113 	}
   111 
   114 
   112 void CScriptIO::ShutdownComplete(TInt aError)
   115 void CScriptIO::ShutdownComplete(TInt aError)
   113 	{
   116 	{
   114 	__FLOG_STMT(_LIT8(logString,"Script:\tShutdownComplete(aError %d)");)
   117 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_SHUTDOWNCOMPLETE_1, _"Script:\tShutdownComplete(aError %d)", aError);
   115 	__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),logString(), aError);
       
   116 
   118 
   117 	ASSERT(iCreateAndShutdownStatus);
   119 	ASSERT(iCreateAndShutdownStatus);
   118 	if (iCreateError != KErrNone) //The creation error is probably more interesting than a bad shutdown error
   120 	if (iCreateError != KErrNone) //The creation error is probably more interesting than a bad shutdown error
   119 		{
   121 		{
   120 		aError = iCreateError;
   122 		aError = iCreateError;
   157 Upcall from CScriptBcaControl class indicating an error was encountered.  Clean up and close BCA.
   159 Upcall from CScriptBcaControl class indicating an error was encountered.  Clean up and close BCA.
   158 
   160 
   159 @param aError System wide error code. 
   161 @param aError System wide error code. 
   160 */
   162 */
   161 	{
   163 	{
   162 	__FLOG_STMT(_LIT8(logString,"Script:\tStop(aError %d)");)
   164 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_STOP_1,"Script:\tStop(aError %d)", aError);
   163 	__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),logString(), aError);
       
   164 
   165 
   165 	iCreateError = aError;
   166 	iCreateError = aError;
   166 	delete iChat;
   167 	delete iChat;
   167 	iChat = NULL;
   168 	iChat = NULL;
   168 	delete iPreSendPause;
   169 	delete iPreSendPause;
   198 void CScriptIO::CommReadComplete(TInt aStatus)
   199 void CScriptIO::CommReadComplete(TInt aStatus)
   199 /**
   200 /**
   200 Reads completely - stops timer and if no error checks string against the desired string
   201 Reads completely - stops timer and if no error checks string against the desired string
   201 */
   202 */
   202 	{
   203 	{
   203 	__FLOG_STMT(_LIT8(logString1,"Script:\tRead Complete");)
   204 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_1,"Script:\tRead Complete");
   204 	__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString1());
       
   205 	if(aStatus==KErrCommsLineFail)
   205 	if(aStatus==KErrCommsLineFail)
   206 		{
   206 		{
   207 		__FLOG_STMT(_LIT8(logString2,"Script:\tComms Error %d");)
   207 		OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_2,"Script:\tComms Error %d",aStatus);
   208 		__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC8>(logString2()),aStatus);
       
   209 		iChat->StopTimer();
   208 		iChat->StopTimer();
   210 		iReadPending=EFalse;
   209 		iReadPending=EFalse;
   211 		TRAPD(ret,iScriptExecutor->CompletedReadL(KErrCommsLineFail));
   210 		TRAPD(ret,iScriptExecutor->CompletedReadL(KErrCommsLineFail));
   212 		if (KErrNone != ret)
   211 		if (KErrNone != ret)
   213 			{
   212 			{
   214 			__FLOG_STMT(_LIT8(logString6,"Script:\tCompleteReadL Failure");)
   213 			OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_3,"Script:\tCompleteReadL Failure");
   215 			__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString6());
       
   216 			}
   214 			}
   217 		return;
   215 		return;
   218 		}
   216 		}
   219 
   217 
   220 	__ASSERT_ALWAYS(iReadPending,NetDialPanic(EIllegalReadComplete));
   218 	__ASSERT_ALWAYS(iReadPending,NetDialPanic(EIllegalReadComplete));
   221 	iReadPending=EFalse;
   219 	iReadPending=EFalse;
   222 
   220 
   223 	
   221 	
   224 	if (aStatus==KErrCommsFrame)
   222 	if (aStatus==KErrCommsFrame)
   225 		{
   223 		{
   226 		__FLOG_STMT(_LIT(logString3,"Script:\tComms Error %d");)
   224 		OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_4, "Script:\tComms Error %d",aStatus);
   227 		__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(logString3()),aStatus);
       
   228 		User::After(KClockTick);		// wait for a clock tick and continue
   225 		User::After(KClockTick);		// wait for a clock tick and continue
   229 		aStatus=KErrNone;
   226 		aStatus=KErrNone;
   230 		}
   227 		}
   231 
   228 
   232 	else if (aStatus!=KErrNone)
   229 	else if (aStatus!=KErrNone)
   233 		{
   230 		{
   234 		TRAPD(ret,iScriptExecutor->CompletedReadL(aStatus));
   231 		TRAPD(ret,iScriptExecutor->CompletedReadL(aStatus));
   235 		if (KErrNone != ret)
   232 		if (KErrNone != ret)
   236 			{
   233 			{
   237 			__FLOG_STMT(_LIT8(logString7,"Script:\tCompleteReadL Failure");)
   234 			OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_5,"Script:\tCompleteReadL Failure");
   238 			__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString7());
       
   239 			}
   235 			}
   240 		return;
   236 		return;
   241 		}
   237 		}
   242 
   238 
   243 #ifdef __FLOG_ACTIVE
   239 	OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_7, "Rx:\t%s",iRxBuffer);
   244 	_LIT(logString4,"Rx:\t%S");
   240 
   245 	TBuf16<KLogBufferSize> temp;
       
   246 	temp.Copy(iRxBuffer.Left(Min(iRxBuffer.Length(),KLogBufferSize)));
       
   247 	__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(logString4()),&temp);
       
   248 #endif
       
   249 
   241 
   250 	if (iScriptExecutor->RequestUsePct())
   242 	if (iScriptExecutor->RequestUsePct())
   251 		{
   243 		{
   252 		TInt err=iScriptExecutor->WritePct(iRxBuffer);
   244 		TInt err=iScriptExecutor->WritePct(iRxBuffer);
   253 		if (err!=KErrNone)
   245 		if (err!=KErrNone)
   254 			{
   246 			{
   255 			TRAPD(ret,iScriptExecutor->CompletedReadL(err));
   247 			TRAPD(ret,iScriptExecutor->CompletedReadL(err));
   256 			if (KErrNone != ret)
   248 			if (KErrNone != ret)
   257 				{
   249 				{
   258 				__FLOG_STMT(_LIT8(logString8,"Script:\tCompleteReadL Failure");)
   250 				OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_8,"Script:\tCompleteReadL Failure");
   259 				__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString8());
       
   260 				}
   251 				}
   261 			return;
   252 			return;
   262 			}
   253 			}
   263 		}
   254 		}
   264 
   255 
   268 			{
   259 			{
   269 			iChat->AddChar(iRxBuffer[iRxBufOffset]);
   260 			iChat->AddChar(iRxBuffer[iRxBufOffset]);
   270 			if(iStringFound!=-1)
   261 			if(iStringFound!=-1)
   271 				{
   262 				{
   272 				iExcessData.Set(iRxBuffer.Right(iRxBuffer.Length()-iRxBufOffset-1));
   263 				iExcessData.Set(iRxBuffer.Right(iRxBuffer.Length()-iRxBufOffset-1));
   273 #ifdef __FLOG_ACTIVE
   264 				OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_9, "Script:\tExcess data buffer set to: %s",iExcessData);
   274 				_LIT(logString5,"Script:\tExcess data buffer set to: %S");
       
   275 				TBuf16<KLogBufferSize> temp;
       
   276 				temp.Copy(iExcessData.Left(Min(iExcessData.Length(),KLogBufferSize)));
       
   277 				__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(logString5()),&temp);
       
   278 #endif
       
   279 				break;
   265 				break;
   280 				}
   266 				}
   281 			}
   267 			}
   282 		}
   268 		}
   283 	else
   269 	else
   287 		{
   273 		{
   288 		iChat->StopTimer();
   274 		iChat->StopTimer();
   289 		TRAPD(ret,iScriptExecutor->CompletedReadL(aStatus,iStringFound));
   275 		TRAPD(ret,iScriptExecutor->CompletedReadL(aStatus,iStringFound));
   290 		if (KErrNone != ret)
   276 		if (KErrNone != ret)
   291 			{
   277 			{
   292 			__FLOG_STMT(_LIT8(logString9,"Script:\tCompleteReadL Failure");)
   278 			OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMREADCOMPLETE_10, "Script:\tCompleteReadL Failure");
   293 			__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString9());
       
   294 			}
   279 			}
   295 		}
   280 		}
   296 	else
   281 	else
   297 		{
   282 		{
   298 		iReadPending=ETrue;
   283 		iReadPending=ETrue;
   303 void CScriptIO::CommWriteComplete(TInt aStatus)
   288 void CScriptIO::CommWriteComplete(TInt aStatus)
   304 /**
   289 /**
   305 Writes completely - stops timer
   290 Writes completely - stops timer
   306 */
   291 */
   307 	{
   292 	{
   308 	__FLOG_STMT(_LIT8(logString,"Script:\tWrite Complete");)
   293 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMWRITECOMPLETE_1,"Script:\tWrite Complete");
   309 	__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString());
       
   310 	iChat->StopTimer();
   294 	iChat->StopTimer();
   311 	if(aStatus==KErrCommsLineFail)
   295 	if(aStatus==KErrCommsLineFail)
   312  		{
   296  		{
   313  		__FLOG_STMT(_LIT8(logString2,"Script:\tComms Error %d");)
   297  		OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_COMMWRITECOMPLETE_2, "Script:\tComms Error %d",aStatus);
   314  		__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),logString2(),aStatus);
       
   315  		iWritePending=EFalse;
   298  		iWritePending=EFalse;
   316  		iScriptExecutor->CompletedWrite(KErrCommsLineFail);
   299  		iScriptExecutor->CompletedWrite(KErrCommsLineFail);
   317  		return;
   300  		return;
   318  		}
   301  		}
   319 	__ASSERT_ALWAYS(iWritePending,NetDialPanic(EIllegalWriteComplete));
   302 	__ASSERT_ALWAYS(iWritePending,NetDialPanic(EIllegalWriteComplete));
   326 void CScriptIO::ChatStringMatch(TInt aIndex)
   309 void CScriptIO::ChatStringMatch(TInt aIndex)
   327 /**
   310 /**
   328 Logs matching string found and sets iStringFound to aIndex.
   311 Logs matching string found and sets iStringFound to aIndex.
   329 */
   312 */
   330 	{
   313 	{
   331 	__FLOG_STMT(_LIT8(logString,"Script:\tMatching String Found %d");)
   314 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_CHATSTRINGMATCH_1, "Script:\tMatching String Found %d",aIndex);
   332 	__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC8>(logString()),aIndex);
       
   333 	iStringFound=aIndex;
   315 	iStringFound=aIndex;
   334 	}
   316 	}
   335 
   317 
   336 void CScriptIO::ChatTimeout()
   318 void CScriptIO::ChatTimeout()
   337 /**
   319 /**
   339 */
   321 */
   340 	{
   322 	{
   341 	CommCancel();
   323 	CommCancel();
   342 	if(iWritePending)
   324 	if(iWritePending)
   343 		{
   325 		{
   344 		__FLOG_STMT(_LIT8(logString1,"Script:\tWrite Chat Time Out");)
   326 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_CHATTIMEOUT_1, "Script:\tWrite Chat Time Out");
   345 		__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString1());
       
   346 		iWritePending=EFalse;
   327 		iWritePending=EFalse;
   347 		iScriptExecutor->CompletedWrite(KErrTimedOut);
   328 		iScriptExecutor->CompletedWrite(KErrTimedOut);
   348 		}
   329 		}
   349 	else if(iReadPending)
   330 	else if(iReadPending)
   350 		{
   331 		{
   351 		__FLOG_STMT(_LIT8(logString2,"Script:\tRead Chat Time Out");)
   332 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_CHATTIMEOUT_2,"Script:\tRead Chat Time Out");
   352 		__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString2());
       
   353 		iReadPending=EFalse;
   333 		iReadPending=EFalse;
   354 		TRAPD(ret,iScriptExecutor->CompletedReadL(KErrTimedOut));
   334 		TRAPD(ret,iScriptExecutor->CompletedReadL(KErrTimedOut));
   355 		if (KErrNone != ret)
   335 		if (KErrNone != ret)
   356 			{
   336 			{
   357 			__FLOG_STMT(_LIT8(logString3,"Script:\tCompleteReadL Failure");)
   337 			OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_CHATTIMEOUT_3,"Script:\tCompleteReadL Failure");
   358 			__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString3());
       
   359 			}
   338 			}
   360 		}
   339 		}
   361 	else
   340 	else
   362 		NetDialPanic(EIllegalTimeOutComplete);
   341 		NetDialPanic(EIllegalTimeOutComplete);
   363 	}
   342 	}
   380 //	
   359 //	
   381 	TReal realTimeInterval=aTimeOut*KTRealOneSecInMicroSecs;
   360 	TReal realTimeInterval=aTimeOut*KTRealOneSecInMicroSecs;
   382 	TInt timeInterval=TInt(realTimeInterval);
   361 	TInt timeInterval=TInt(realTimeInterval);
   383 	if (realTimeInterval>TReal(timeInterval))
   362 	if (realTimeInterval>TReal(timeInterval))
   384 		timeInterval++;
   363 		timeInterval++;
   385 	__FLOG_STMT(_LIT8(logString,"Script:\tRead Pending In %d Microseconds");)
   364 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_READ_1,"Script:\tRead Pending In %d Microseconds",timeInterval);
   386 	__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),logString(),timeInterval);
   365 	
   387 //
   366 //
   388 	iChat->StartTimer(timeInterval);
   367 	iChat->StartTimer(timeInterval);
   389 	CommReadOneOrMore(iRxBuffer);
   368 	CommReadOneOrMore(iRxBuffer);
   390 	iRxBufOffset=0;
   369 	iRxBufOffset=0;
   391 	}
   370 	}
   393 void CScriptIO::ReadEcho()
   372 void CScriptIO::ReadEcho()
   394 /**
   373 /**
   395 Reads echo.
   374 Reads echo.
   396 */
   375 */
   397 	{
   376 	{
   398 	__FLOG_STMT(_LIT8(logString,"Script:\tRead Echo");)
   377 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_READECHO_1,"Script:\tRead Echo");
   399 	__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString());
       
   400 	iExcessData.Set(NULL,0);	// clear excess data buffer
   378 	iExcessData.Set(NULL,0);	// clear excess data buffer
   401 
   379 
   402 	iReadPending=ETrue;
   380 	iReadPending=ETrue;
   403 	iChat->StartTimer(KMaxTInt);
   381 	iChat->StartTimer(KMaxTInt);
   404 	CommReadOneOrMore(iRxBuffer);
   382 	CommReadOneOrMore(iRxBuffer);
   422 void CScriptIO::PreSendPauseCompleted()
   400 void CScriptIO::PreSendPauseCompleted()
   423 /**
   401 /**
   424 PreSend pause is finished, can now do write.
   402 PreSend pause is finished, can now do write.
   425 */
   403 */
   426 	{
   404 	{
   427 #ifdef __FLOG_ACTIVE
   405 	OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSCRIPTIO_PRESENDPAUSECOMPLETED_1, "Tx:\t%s",iTxBuffer);
   428 	_LIT(logString,"Tx:\t%S");
       
   429 	TBuf16<KLogBufferSize> temp;
       
   430 	temp.Copy(iTxBuffer.Left(Min(iTxBuffer.Length(),KLogBufferSize)));
       
   431 	__FLOG_STATIC1(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(logString()),&temp);
       
   432 #endif
       
   433 	CommWrite(iTxBuffer);
   406 	CommWrite(iTxBuffer);
   434 	iChat->StartTimer(KWriteTimeOutSec*KOneSecInMicroSecs);
   407 	iChat->StartTimer(KWriteTimeOutSec*KOneSecInMicroSecs);
   435 	}
   408 	}
   436 
   409 
   437 TBool CScriptIO::RWPending()
   410 TBool CScriptIO::RWPending()