# HG changeset patch # User Chad Peckham # Date 1251211488 18000 # Node ID 70467d59879464e4d36a28935cc89d66275dd095 # Parent 02e387d99c91f76c3199c43e2c11f80bff62ac19 Fix for bug 9652 diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf.test/META-INF/MANIFEST.MF --- a/connectivity/com.nokia.tcf.test/META-INF/MANIFEST.MF Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf.test/META-INF/MANIFEST.MF Tue Aug 25 09:44:48 2009 -0500 @@ -7,5 +7,7 @@ Bundle-Vendor: Nokia Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, - com.nokia.tcf + com.nokia.tcf, + org.junit Eclipse-LazyStart: true +Import-Package: junit.framework diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf.test/src/com/nokia/tcf/test/TestOSTTRKNoFormat.java --- a/connectivity/com.nokia.tcf.test/src/com/nokia/tcf/test/TestOSTTRKNoFormat.java Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf.test/src/com/nokia/tcf/test/TestOSTTRKNoFormat.java Tue Aug 25 09:44:48 2009 -0500 @@ -21,7 +21,6 @@ import org.eclipse.core.runtime.IStatus; import com.nokia.tcf.api.ITCAPIConnection; -import com.nokia.tcf.api.ITCConnection; import com.nokia.tcf.api.ITCMessage; import com.nokia.tcf.api.ITCMessageIds; import com.nokia.tcf.api.ITCMessageInputStream; diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/META-INF/MANIFEST.MF --- a/connectivity/com.nokia.tcf/META-INF/MANIFEST.MF Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/META-INF/MANIFEST.MF Tue Aug 25 09:44:48 2009 -0500 @@ -8,6 +8,6 @@ Require-Bundle: org.eclipse.core.runtime Bundle-ActivationPolicy: lazy Export-Package: com.nokia.tcf.api, - com.nokia.tcf.impl;x-friends:="com.nokia.tcf.test,com.nokia.tcf.legacy" + com.nokia.tcf.impl;x-friends:="com.nokia.tcf.test,com.nokia.tcf.legacy,com.nokia.carbide.cpp.edc.agent.trk" Bundle-ClassPath: tcfPlugin.jar Bundle-RequiredExecutionEnvironment: J2SE-1.5 diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/RealSerialComm.cpp --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/RealSerialComm.cpp Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/RealSerialComm.cpp Tue Aug 25 09:44:48 2009 -0500 @@ -728,6 +728,7 @@ long bytesRemaining = m_numberBytes; long usedLen = 0; bool done = false; + long numberSkipped=0; while (!done) { @@ -736,34 +737,58 @@ BYTE* fullMessage = ptr; BYTE* rawMessage = ptr; BYTE msgId = 0; - if (m_Protocol->DecodeMessage(fullMessage, fullMessageLength, msgId, rawMessage, rawLength)) + int result = m_Protocol->DecodeMessage(fullMessage, fullMessageLength, msgId, rawMessage, rawLength); + if (result == DECODE_NOT_ENOUGH_BYTES_TO_SEARCH) + { + done = true; + } + else if (result == DECODE_MESSAGE_NOT_FOUND) + { + numberSkipped++; + usedLen += fullMessageLength; + bytesRemaining -= fullMessageLength; + ptr += fullMessageLength; + if (bytesRemaining < protocolHeaderLength) + done = true; + } + else if (result == DECODE_MESSAGE_FOUND) { err = PreProcessMessage(msgId, fullMessageLength, fullMessage); if (err != TCAPI_ERR_NONE) { + PROCLOGOPEN(); + PROCLOGA1("CTcpComm::ProcessBuffer Notify err = %x\n", err); + PROCLOGCLOSE(); // notify all clients right now pConn->NotifyClientsCommError(err, false, 0); err = TCAPI_ERR_NONE; } #ifdef _DEBUG int reallen = fullMessageLength; - if (reallen > 50) reallen = 50; + if (reallen > 80) reallen = 80; char msg[6]; msg[0] = '\0'; - sLogMsg[0] = '\0'; + sTcpLogMsg[0] = '\0'; if (reallen > 0) { - sLogMsg[0] = '\0'; + sTcpLogMsg[0] = '\0'; for (int i = 0; i < reallen; i++) { - sprintf(msg, "%02.2x ", ptr[i]); - strcat(sLogMsg, msg); + if (isalnum(ptr[i])) + { + sprintf(msg, "%c", ptr[i]); + } + else + { + sprintf(msg, "%02.2x ", ptr[i]); + } + strcat(sTcpLogMsg, msg); } } #endif PROCLOGOPEN(); - PROCLOGA5("CRealSerialComm::ProcessBuffer - RouteMesssage pRegistry = %x id=%x len=%d len=%d\n msg=%s\n", pRegistry, msgId, fullMessageLength, rawLength, sLogMsg); + PROCLOGA5("CTcpComm::ProcessBuffer - RouteMesssage pRegistry = %x id=%x len=%d len=%d msg=%s\n", pRegistry, msgId, fullMessageLength, rawLength, sTcpLogMsg); PROCLOGCLOSE(); err = pRegistry->RouteMessage(msgId, fullMessage, fullMessageLength, rawMessage, rawLength); @@ -776,15 +801,6 @@ if (bytesRemaining < protocolHeaderLength) done = true; } - else - { - numberProcessed++; - usedLen += fullMessageLength; - bytesRemaining -= fullMessageLength; - ptr += fullMessageLength; - if (bytesRemaining < protocolHeaderLength) - done = true; - } } DeleteMsg(usedLen); } diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/TCFCommSerial.plg --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/TCFCommSerial.plg Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/TCFCommSerial.plg Tue Aug 25 09:44:48 2009 -0500 @@ -3,46 +3,51 @@
 

Build Log

---------------------Configuration: TCFCommSerial - Win32 Debug-------------------- +--------------------Configuration: TCFCommSerial - Win32 Release--------------------

Command Lines

-Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23D7.tmp" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP744.tmp" with contents [ -/nologo /Zp2 /MTd /W3 /Gm /GX /ZI /Od /I "..\TCFServer" /I "..\Common\Headers" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMSERIAL_EXPORTS" /Fp"Debug/TCFCommSerial.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf.legacy\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" +/nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /I "..\Common\Headers" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMSERIAL_EXPORTS" /Fp"Release/TCFCommSerial.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23D7.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23D8.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP744.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP745.tmp" with contents [ -kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:yes /pdb:"Debug/TCFCommSerial.pdb" /map:"Debug/TCFCommSerial.map" /debug /machine:I386 /out:"Debug/TCFCommSerial.dll" /implib:"Debug/TCFCommSerial.lib" /pdbtype:sept -.\Debug\BaseCom.obj -.\Debug\mutex.obj -.\Debug\RealSerialComm.obj -.\Debug\StdAfx.obj -.\Debug\TCDebugLog.obj -.\Debug\TCFCommSerial.obj +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/TCFCommSerial.pdb" /map:"Release/TCFCommSerial.map" /machine:I386 /out:"Release/TCFCommSerial.dll" /implib:"Release/TCFCommSerial.lib" +.\Release\BaseCom.obj +.\Release\mutex.obj +.\Release\RealSerialComm.obj +.\Release\StdAfx.obj +.\Release\TCDebugLog.obj +.\Release\TCFCommSerial.obj ] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23D8.tmp" +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP745.tmp"

Output Window

Compiling... RealSerialComm.cpp Linking... -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23D9.bat" with contents + Creating library Release/TCFCommSerial.lib and object Release/TCFCommSerial.exp +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP749.bat" with contents [ @echo off -copyBinaries Debug +copyBinaries Release ] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23D9.bat" +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP749.bat" copy libs Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. - 1 file(s) copied. - 1 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFCommSerial.dll - 0 error(s), 0 warning(s) +TCFCommSerial.dll - 1 error(s), 0 warning(s)
diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TCFCommTCP.plg --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TCFCommTCP.plg Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TCFCommTCP.plg Tue Aug 25 09:44:48 2009 -0500 @@ -3,14 +3,51 @@
 

Build Log

---------------------Configuration: TCFCommTCP - Win32 Debug-------------------- +--------------------Configuration: TCFCommTCP - Win32 Release--------------------

Command Lines

+Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP772.tmp" with contents +[ +/nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /I "..\Common\Headers" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMTCP_EXPORTS" /Fp"Release/TCFCommTCP.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommTCP\TcpComm.cpp" +] +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP772.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP773.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib shlwapi.lib /nologo /dll /incremental:no /pdb:"Release/TCFCommTCP.pdb" /map:"Release/TCFCommTCP.map" /machine:I386 /out:"Release/TCFCommTCP.dll" /implib:"Release/TCFCommTCP.lib" +.\Release\BaseCom.obj +.\Release\mutex.obj +.\Release\StdAfx.obj +.\Release\TCDebugLog.obj +.\Release\TCFCommTCP.obj +.\Release\TcpComm.obj +] +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP773.tmp" +

Output Window

+Compiling... +TcpComm.cpp +Linking... + Creating library Release/TCFCommTCP.lib and object Release/TCFCommTCP.exp +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP777.bat" with contents +[ +@echo off +copybinaries Release +] +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP777.bat" +copy libs +Copy binaries to ..\..\..\os\win32\x86 +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFCommTCP.dll - 0 error(s), 0 warning(s) +TCFCommTCP.dll - 1 error(s), 0 warning(s)
diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TcpComm.cpp --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TcpComm.cpp Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TcpComm.cpp Tue Aug 25 09:44:48 2009 -0500 @@ -480,6 +480,7 @@ long bytesRemaining = m_numberBytes; long usedLen = 0; bool done = false; + long numberSkipped=0; while (!done) { @@ -488,7 +489,21 @@ BYTE* fullMessage = ptr; BYTE* rawMessage = ptr; BYTE msgId = 0; - if (m_Protocol->DecodeMessage(fullMessage, fullMessageLength, msgId, rawMessage, rawLength)) + int result = m_Protocol->DecodeMessage(fullMessage, fullMessageLength, msgId, rawMessage, rawLength); + if (result == DECODE_NOT_ENOUGH_BYTES_TO_SEARCH) + { + done = true; + } + else if (result == DECODE_MESSAGE_NOT_FOUND) + { + numberSkipped++; + usedLen += fullMessageLength; + bytesRemaining -= fullMessageLength; + ptr += fullMessageLength; + if (bytesRemaining < protocolHeaderLength) + done = true; + } + else if (result == DECODE_MESSAGE_FOUND) { err = PreProcessMessage(msgId, fullMessageLength, fullMessage); if (err != TCAPI_ERR_NONE) @@ -502,7 +517,7 @@ } #ifdef _DEBUG int reallen = fullMessageLength; - if (reallen > 50) reallen = 50; + if (reallen > 80) reallen = 80; char msg[6]; msg[0] = '\0'; @@ -512,13 +527,20 @@ sTcpLogMsg[0] = '\0'; for (int i = 0; i < reallen; i++) { - sprintf(msg, "%02.2x ", ptr[i]); + if (isalnum(ptr[i])) + { + sprintf(msg, "%c", ptr[i]); + } + else + { + sprintf(msg, "%02.2x ", ptr[i]); + } strcat(sTcpLogMsg, msg); } } #endif PROCLOGOPEN(); - PROCLOGA5("CTcpComm::ProcessBuffer - RouteMesssage pRegistry = %x id=%x len=%d len=%d\n msg=%s\n", pRegistry, msgId, fullMessageLength, rawLength, sTcpLogMsg); + PROCLOGA5("CTcpComm::ProcessBuffer - RouteMesssage pRegistry = %x id=%x len=%d len=%d msg=%s\n", pRegistry, msgId, fullMessageLength, rawLength, sTcpLogMsg); PROCLOGCLOSE(); err = pRegistry->RouteMessage(msgId, fullMessage, fullMessageLength, rawMessage, rawLength); @@ -531,17 +553,11 @@ if (bytesRemaining < protocolHeaderLength) done = true; } - else - { - numberProcessed++; - usedLen += fullMessageLength; - bytesRemaining -= fullMessageLength; - ptr += fullMessageLength; - if (bytesRemaining < protocolHeaderLength) - done = true; - } } DeleteMsg(usedLen); + PROCLOGOPEN(); + PROCLOGA2("CTcpComm::ProcessBuffer - numberSkipped=%d numberProcessed=%d\n", numberSkipped, numberProcessed); + PROCLOGCLOSE(); } } diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFCommVirtualSerial/TCFCommVirtualSerial.plg --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFCommVirtualSerial/TCFCommVirtualSerial.plg Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFCommVirtualSerial/TCFCommVirtualSerial.plg Tue Aug 25 09:44:48 2009 -0500 @@ -3,47 +3,52 @@
 

Build Log

---------------------Configuration: TCFCommVirtualSerial - Win32 Debug-------------------- +--------------------Configuration: TCFCommVirtualSerial - Win32 Release--------------------

Command Lines

-Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23DA.tmp" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP74A.tmp" with contents [ -/nologo /Zp2 /MTd /W3 /Gm /GX /ZI /Od /I "..\TCFCommSerial" /I "..\Common\Headers" /I "..\TCFServer" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMVIRTUALSERIAL_EXPORTS" /Fp"Debug/TCFCommVirtualSerial.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf.legacy\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" +/nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFCommSerial" /I "..\Common\Headers" /I "..\TCFServer" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMVIRTUALSERIAL_EXPORTS" /Fp"Release/TCFCommVirtualSerial.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23DA.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23DB.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP74A.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP74B.tmp" with contents [ -kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:yes /pdb:"Debug/TCFCommVirtualSerial.pdb" /map:"Debug/TCFCommVirtualSerial.map" /debug /machine:I386 /out:"Debug/TCFCommVirtualSerial.dll" /implib:"Debug/TCFCommVirtualSerial.lib" /pdbtype:sept -.\Debug\BaseCom.obj -.\Debug\mutex.obj -.\Debug\RealSerialComm.obj -.\Debug\StdAfx.obj -.\Debug\TCDebugLog.obj -.\Debug\TCFCommVirtualSerial.obj -.\Debug\VirtualSerialComm.obj +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/TCFCommVirtualSerial.pdb" /map:"Release/TCFCommVirtualSerial.map" /machine:I386 /out:"Release/TCFCommVirtualSerial.dll" /implib:"Release/TCFCommVirtualSerial.lib" +.\Release\BaseCom.obj +.\Release\mutex.obj +.\Release\RealSerialComm.obj +.\Release\StdAfx.obj +.\Release\TCDebugLog.obj +.\Release\TCFCommVirtualSerial.obj +.\Release\VirtualSerialComm.obj ] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23DB.tmp" +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP74B.tmp"

Output Window

Compiling... RealSerialComm.cpp Linking... -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23DC.bat" with contents + Creating library Release/TCFCommVirtualSerial.lib and object Release/TCFCommVirtualSerial.exp +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP74F.bat" with contents [ @echo off -copyBinaries Debug +copyBinaries Release ] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP23DC.bat" +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP74F.bat" copy libs Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. - 1 file(s) copied. - 1 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFCommVirtualSerial.dll - 0 error(s), 0 warning(s) +TCFCommVirtualSerial.dll - 1 error(s), 0 warning(s)
diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFNative.ncb Binary file connectivity/com.nokia.tcf/native/TCFNative/TCFNative.ncb has changed diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFNative.opt Binary file connectivity/com.nokia.tcf/native/TCFNative/TCFNative.opt has changed diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/OSTProtocol.cpp --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/OSTProtocol.cpp Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/OSTProtocol.cpp Tue Aug 25 09:44:48 2009 -0500 @@ -34,9 +34,9 @@ { } -BOOL COSTProtocol::DecodeMessage(BYTE* fullMessage, DWORD& fullMessageLength, BYTE& msgId, BYTE*& rawMessage, DWORD& rawLength) +int COSTProtocol::DecodeMessage(BYTE* fullMessage, DWORD& fullMessageLength, BYTE& msgId, BYTE*& rawMessage, DWORD& rawLength) { - BOOL found = FALSE; + int result = DECODE_MESSAGE_NOT_FOUND; WORD msgLen = MAKEWORD(fullMessage[OST_LEN_BYTE_1+1], fullMessage[OST_LEN_BYTE_1]); if (fullMessageLength >= (WORD)(msgLen + OST_HDR_LEN_1)) @@ -45,10 +45,14 @@ rawMessage = &fullMessage[OST_MSG_BYTE_1]; rawLength = msgLen; fullMessageLength = msgLen+OST_HDR_LEN_1; - found = TRUE; + result = DECODE_MESSAGE_FOUND; + } + else + { + result = DECODE_NOT_ENOUGH_BYTES_TO_SEARCH; } - return found; + return result; } DWORD COSTProtocol::EncodeMessage(BYTE* rawMessage, DWORD rawLength, BYTE protocolVersion, BYTE msgId, BYTE* fullMessage, DWORD maxFullLength) diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/OSTProtocol.h --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/OSTProtocol.h Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/OSTProtocol.h Tue Aug 25 09:44:48 2009 -0500 @@ -49,7 +49,7 @@ COSTProtocol(); virtual ~COSTProtocol(); - BOOL DecodeMessage(BYTE* fullMessage, DWORD& fullLength, BYTE& msgId, BYTE*& rawMessage, DWORD& rawLength); + int DecodeMessage(BYTE* fullMessage, DWORD& fullLength, BYTE& msgId, BYTE*& rawMessage, DWORD& rawLength); DWORD EncodeMessage(BYTE* rawMessage, DWORD rawLength, BYTE protocolVersion, BYTE msgId, BYTE* fullMessage, DWORD maxFullLength); DWORD GetHeaderLength() { return OST_HDR_LEN_1; } }; diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/TCFProtOST.plg --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/TCFProtOST.plg Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/TCFProtOST.plg Tue Aug 25 09:44:48 2009 -0500 @@ -3,103 +3,26 @@
 

Build Log

---------------------Configuration: TCFClient - Win32 Release-------------------- -

-

Command Lines

-Creating command line "rc.exe /l 0x409 /fo"Release/resource.res" /d "NDEBUG" "C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFClient\resource.rc"" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28AE.tmp" with contents -[ -/nologo /Zp2 /MT /W3 /GX /O2 /I "..\Common\Headers" /I ".\jdk1.5.0_10\include" /I ".\jdk1.5.0_10\include\win32" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCLIENT_EXPORTS" /Fp"Release/TCFClient.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFClient\ClientManager.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\ErrorMonitorData.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\InputStream.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\ServerClient.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\shareddata.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFClient\TCAPIConnectionJni.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFClient\TCFClient.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFClient\TCFCppApi.cpp" -] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28AE.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28AF.tmp" with contents -[ -/nologo /Zp2 /MT /W3 /GX /O2 /I "..\Common\Headers" /I ".\jdk1.5.0_10\include" /I ".\jdk1.5.0_10\include\win32" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCLIENT_EXPORTS" /Fp"Release/TCFClient.pch" /Yc"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFClient\StdAfx.cpp" -] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28AF.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B0.tmp" with contents -[ -kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib shlwapi.lib /nologo /dll /incremental:no /pdb:"Release/TCFClient.pdb" /map:"Release/TCFClient.map" /machine:I386 /out:"Release/TCFClient.dll" /implib:"Release/TCFClient.lib" -.\Release\ClientManager.obj -.\Release\ErrorMonitorData.obj -.\Release\InputStream.obj -.\Release\mutex.obj -.\Release\ServerClient.obj -.\Release\shareddata.obj -.\Release\StdAfx.obj -.\Release\TCAPIConnectionJni.obj -.\Release\TCDebugLog.obj -.\Release\TCFClient.obj -.\Release\TCFCppApi.obj -.\Release\resource.res -] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B0.tmp" -

Output Window

-Compiling resources... -Compiling... -StdAfx.cpp -Compiling... -ClientManager.cpp -ErrorMonitorData.cpp -InputStream.cpp -mutex.cpp -ServerClient.cpp -shareddata.cpp -TCAPIConnectionJni.cpp -TCDebugLog.cpp -TCFClient.cpp -TCFCppApi.cpp -Generating Code... -Linking... - Creating library Release/TCFClient.lib and object Release/TCFClient.exp -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B4.bat" with contents -[ -@echo off -copybinaries Release -] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B4.bat" -copy libs -Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. - 1 file(s) copied. - 1 file(s) copied. - - - -

Results

-TCFClient.dll - 0 error(s), 0 warning(s) -

--------------------Configuration: TCFCommSerial - Win32 Release--------------------

Command Lines

-Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B5.tmp" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP750.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /I "..\Common\Headers" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMSERIAL_EXPORTS" /Fp"Release/TCFCommSerial.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\BaseCom.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommSerial\TCFCommSerial.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\BaseCom.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommSerial\TCFCommSerial.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B5.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B6.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP750.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP751.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /I "..\Common\Headers" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMSERIAL_EXPORTS" /Fp"Release/TCFCommSerial.pch" /Yc"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommSerial\StdAfx.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommSerial\StdAfx.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B6.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B7.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP751.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP752.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/TCFCommSerial.pdb" /map:"Release/TCFCommSerial.map" /machine:I386 /out:"Release/TCFCommSerial.dll" /implib:"Release/TCFCommSerial.lib" .\Release\BaseCom.obj @@ -109,7 +32,7 @@ .\Release\TCDebugLog.obj .\Release\TCFCommSerial.obj ] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28B7.tmp" +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP752.tmp"

Output Window

Compiling... StdAfx.cpp @@ -122,43 +45,47 @@ Generating Code... Linking... Creating library Release/TCFCommSerial.lib and object Release/TCFCommSerial.exp -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BB.bat" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP756.bat" with contents [ @echo off copyBinaries Release ] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BB.bat" +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP756.bat" copy libs Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. - 1 file(s) copied. - 1 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFCommSerial.dll - 0 error(s), 0 warning(s) +TCFCommSerial.dll - 1 error(s), 0 warning(s)

--------------------Configuration: TCFCommTCP - Win32 Release--------------------

Command Lines

-Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BC.tmp" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP757.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /I "..\Common\Headers" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMTCP_EXPORTS" /Fp"Release/TCFCommTCP.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\BaseCom.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommTCP\TCFCommTCP.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommTCP\TcpComm.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\BaseCom.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommTCP\TCFCommTCP.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommTCP\TcpComm.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BC.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BD.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP757.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP758.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /I "..\Common\Headers" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMTCP_EXPORTS" /Fp"Release/TCFCommTCP.pch" /Yc"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommTCP\StdAfx.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommTCP\StdAfx.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BD.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BE.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP758.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP759.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib shlwapi.lib /nologo /dll /incremental:no /pdb:"Release/TCFCommTCP.pdb" /map:"Release/TCFCommTCP.map" /machine:I386 /out:"Release/TCFCommTCP.dll" /implib:"Release/TCFCommTCP.lib" .\Release\BaseCom.obj @@ -168,7 +95,7 @@ .\Release\TCFCommTCP.obj .\Release\TcpComm.obj ] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28BE.tmp" +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP759.tmp"

Output Window

Compiling... StdAfx.cpp @@ -181,44 +108,48 @@ Generating Code... Linking... Creating library Release/TCFCommTCP.lib and object Release/TCFCommTCP.exp -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C2.bat" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP75D.bat" with contents [ @echo off copybinaries Release ] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C2.bat" +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP75D.bat" copy libs Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. - 1 file(s) copied. - 1 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFCommTCP.dll - 0 error(s), 0 warning(s) +TCFCommTCP.dll - 1 error(s), 0 warning(s)

--------------------Configuration: TCFCommVirtualSerial - Win32 Release--------------------

Command Lines

-Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C3.tmp" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP75E.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFCommSerial" /I "..\Common\Headers" /I "..\TCFServer" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMVIRTUALSERIAL_EXPORTS" /Fp"Release/TCFCommVirtualSerial.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\BaseCom.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommVirtualSerial\TCFCommVirtualSerial.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommVirtualSerial\VirtualSerialComm.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\BaseCom.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommSerial\RealSerialComm.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommVirtualSerial\TCFCommVirtualSerial.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommVirtualSerial\VirtualSerialComm.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C3.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C4.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP75E.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP75F.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFCommSerial" /I "..\Common\Headers" /I "..\TCFServer" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFCOMMVIRTUALSERIAL_EXPORTS" /Fp"Release/TCFCommVirtualSerial.pch" /Yc"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFCommVirtualSerial\StdAfx.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFCommVirtualSerial\StdAfx.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C4.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C5.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP75F.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP760.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/TCFCommVirtualSerial.pdb" /map:"Release/TCFCommVirtualSerial.map" /machine:I386 /out:"Release/TCFCommVirtualSerial.dll" /implib:"Release/TCFCommVirtualSerial.lib" .\Release\BaseCom.obj @@ -229,7 +160,7 @@ .\Release\TCFCommVirtualSerial.obj .\Release\VirtualSerialComm.obj ] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C5.tmp" +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP760.tmp"

Output Window

Compiling... StdAfx.cpp @@ -243,41 +174,45 @@ Generating Code... Linking... Creating library Release/TCFCommVirtualSerial.lib and object Release/TCFCommVirtualSerial.exp -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C9.bat" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP764.bat" with contents [ @echo off copyBinaries Release ] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28C9.bat" +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP764.bat" copy libs Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. - 1 file(s) copied. - 1 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFCommVirtualSerial.dll - 0 error(s), 0 warning(s) +TCFCommVirtualSerial.dll - 1 error(s), 0 warning(s)

--------------------Configuration: TCFProtOST - Win32 Release--------------------

Command Lines

-Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28CA.tmp" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP765.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFPROTOST_EXPORTS" /Fp"Release/TCFProtOST.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\BaseProtocol.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFProtOST\OSTProtocol.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFProtOST\TCFProtOST.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\BaseProtocol.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFProtOST\OSTProtocol.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFProtOST\TCFProtOST.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28CA.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28CB.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP765.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP766.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\TCFServer" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TCFPROTOST_EXPORTS" /Fp"Release/TCFProtOST.pch" /Yc"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFProtOST\StdAfx.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFProtOST\StdAfx.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28CB.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28CC.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP766.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP767.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/TCFProtOST.pdb" /map:"Release/TCFProtOST.map" /machine:I386 /out:"Release/TCFProtOST.dll" /implib:"Release/TCFProtOST.lib" .\Release\BaseProtocol.obj @@ -285,7 +220,7 @@ .\Release\StdAfx.obj .\Release\TCFProtOST.obj ] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28CC.tmp" +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP767.tmp"

Output Window

Compiling... StdAfx.cpp @@ -296,55 +231,59 @@ Generating Code... Linking... Creating library Release/TCFProtOST.lib and object Release/TCFProtOST.exp -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D0.bat" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76B.bat" with contents [ @echo off copyBinaries Release ] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D0.bat" +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76B.bat" copy libs Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. - 1 file(s) copied. - 1 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFProtOST.dll - 0 error(s), 0 warning(s) +TCFProtOST.dll - 1 error(s), 0 warning(s)

--------------------Configuration: TCFServer - Win32 Release--------------------

Command Lines

-Creating command line "rc.exe /l 0x409 /fo"Release/resource.res" /d "NDEBUG" "C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\resource.rc"" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D1.tmp" with contents +Creating command line "rc.exe /l 0x409 /fo"Release/resource.res" /d "NDEBUG" "C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\resource.rc"" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76C.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\Common\Headers" /I "..\Common\Source" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Release/TCFServer.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\Client.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\CommRegistryItem.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\Connection.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\ConnectionImpl.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\ErrorMonitorData.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\InputStream.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\MessageFile.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\ProtocolRegistryItem.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\Registry.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\RegistryImpl.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\ServerClient.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\ServerManager.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\shareddata.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\TCFServer.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\Client.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\CommRegistryItem.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\Connection.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\ConnectionImpl.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\ErrorMonitorData.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\InputStream.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\MessageFile.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\mutex.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\ProtocolRegistryItem.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\Registry.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\RegistryImpl.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\ServerClient.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\ServerManager.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\shareddata.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\Common\Source\TCDebugLog.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\TCFServer.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D1.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D2.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76C.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76D.tmp" with contents [ /nologo /Zp2 /MT /W3 /GX /O2 /I "..\Common\Headers" /I "..\Common\Source" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Release/TCFServer.pch" /Yc"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c -"C:\Symbian\Carbide\devspace_203_0316\com.nokia.tcf\native\TCFNative\TCFServer\StdAfx.cpp" +"C:\dev22clone\carbidecpp\connectivity\com.nokia.tcf\native\TCFNative\TCFServer\StdAfx.cpp" ] -Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D2.tmp" -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D3.tmp" with contents +Creating command line "cl.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76D.tmp" +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76E.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib shlwapi.lib /nologo /subsystem:console /incremental:no /pdb:"Release/TCFServer.pdb" /machine:I386 /out:"Release/TCFServer.exe" .\Release\Client.obj @@ -366,7 +305,7 @@ .\Release\TCFServer.obj .\Release\resource.res ] -Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D3.tmp" +Creating command line "link.exe @C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP76E.tmp"

Output Window

Compiling resources... Compiling... @@ -390,20 +329,22 @@ TCFServer.cpp Generating Code... Linking... -Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D5.bat" with contents +Creating temporary file "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP770.bat" with contents [ @echo off copybinaries Release ] -Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP28D5.bat" +Creating command line "C:\DOCUME~1\chpeckha\LOCALS~1\Temp\RSP770.bat" copy binary Copy binaries to ..\..\..\os\win32\x86 - 1 file(s) copied. +The system cannot find the path specified. + 0 file(s) copied. +Error executing c:\winnt\system32\cmd.exe.

Results

-TCFServer.exe - 0 error(s), 0 warning(s) +TCFServer.exe - 1 error(s), 0 warning(s)
diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFServer/BaseCom.h --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFServer/BaseCom.h Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFServer/BaseCom.h Tue Aug 25 09:44:48 2009 -0500 @@ -48,7 +48,7 @@ #define COMMLOGCLOSE() #endif -//#define LOG_PROCCOMM +#define LOG_PROCCOMM #if defined(LOG_PROCCOMM) && defined(_DEBUG) #define PROCLOGOPEN() if (gDoLogging) { m_ProcDebugLog->WaitForAccess(); } #define PROCLOGS(s) if (gDoLogging) { sprintf(m_ProcDebugLogMsg,"%s", s); m_ProcDebugLog->log(m_ProcDebugLogMsg); } diff -r 02e387d99c91 -r 70467d598794 connectivity/com.nokia.tcf/native/TCFNative/TCFServer/BaseProtocol.h --- a/connectivity/com.nokia.tcf/native/TCFNative/TCFServer/BaseProtocol.h Tue Aug 25 09:33:36 2009 -0500 +++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFServer/BaseProtocol.h Tue Aug 25 09:44:48 2009 -0500 @@ -25,6 +25,10 @@ #pragma once #endif // _MSC_VER > 1000 +#define DECODE_MESSAGE_NOT_FOUND (0) // enough bytes, but message cannot be decoded +#define DECODE_MESSAGE_FOUND (1) // enough bytes, and message found +#define DECODE_NOT_ENOUGH_BYTES_TO_SEARCH (2) // not enough bytes to do compare + class CBaseProtocol { public: @@ -32,7 +36,7 @@ virtual ~CBaseProtocol(); // used to decode a message into header/message parts - virtual BOOL DecodeMessage(BYTE* fullMessage, DWORD& fullLength, BYTE& msgId, BYTE*& rawMessage, DWORD& rawLength)=0; + virtual int DecodeMessage(BYTE* fullMessage, DWORD& fullLength, BYTE& msgId, BYTE*& rawMessage, DWORD& rawLength)=0; // used to encode a raw message (prefixes any protocol headers) virtual DWORD EncodeMessage(BYTE* rawMessage, DWORD rawLength, BYTE protocolVersion, BYTE msgId, BYTE* fullMessage, DWORD maxFullLength)=0;