r3142 - trunk/libmsip/source
erik at minisip.org
erik at minisip.org
Mon Jan 22 22:37:15 CET 2007
Author: erik
Date: 2007-01-22 22:37:14 +0100 (Mon, 22 Jan 2007)
New Revision: 3142
Modified:
trunk/libmsip/source/SipLayerTransport.cxx
Log:
* Move all (and not only parts) time stamping code to within ENABLE_TS.
ENABLE_TS is only used in very specific situations when evaluating
performance. It should never be defined for a "real" build.
Modified: trunk/libmsip/source/SipLayerTransport.cxx
===================================================================
--- trunk/libmsip/source/SipLayerTransport.cxx 2007-01-22 21:24:38 UTC (rev 3141)
+++ trunk/libmsip/source/SipLayerTransport.cxx 2007-01-22 21:37:14 UTC (rev 3142)
@@ -196,12 +196,12 @@
state = 2;
contentLength = findContentLength();
if( contentLength == 0 ){
+ string messageString( (char *)buffer, index );
+ init();
+#ifdef ENABLE_TS
char tmp[12];
tmp[11]=0;
memcpy(&tmp[0], buffer , 11);
- string messageString( (char *)buffer, index );
- init();
-#ifdef ENABLE_TS
ts.save(tmp);
#endif
MRef<SipMessage*> msg = SipMessage::createMessage( messageString );
More information about the Minisip-devel
mailing list