[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libCERTI NetworkMessage_RW.cc
From: |
certi-cvs |
Subject: |
[certi-cvs] certi/libCERTI NetworkMessage_RW.cc |
Date: |
Thu, 23 Oct 2008 13:46:19 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 08/10/23 13:46:19
Modified files:
libCERTI : NetworkMessage_RW.cc
Log message:
Merged patch #6657
from Enrico
as a first "fast" solution to
bug #24627 : rtig error in program sequence
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/NetworkMessage_RW.cc?cvsroot=certi&r1=3.51&r2=3.52
Patches:
Index: NetworkMessage_RW.cc
===================================================================
RCS file: /sources/certi/certi/libCERTI/NetworkMessage_RW.cc,v
retrieving revision 3.51
retrieving revision 3.52
diff -u -b -r3.51 -r3.52
--- NetworkMessage_RW.cc 30 May 2008 14:04:47 -0000 3.51
+++ NetworkMessage_RW.cc 23 Oct 2008 13:46:19 -0000 3.52
@@ -16,7 +16,7 @@
// License along with this program ; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// $Id: NetworkMessage_RW.cc,v 3.51 2008/05/30 14:04:47 erk Exp $
+// $Id: NetworkMessage_RW.cc,v 3.52 2008/10/23 13:46:19 erk Exp $
// ----------------------------------------------------------------------------
#include "NetworkMessage.hh"
#include "PrettyDebug.hh"
@@ -115,7 +115,12 @@
D.Out(pdDebug,"Sending <%s> whose buffer has <%u>
bytes",getName().c_str(),msgBuffer.size());
//msgBuffer.show(msgBuf(0),5);
/* 3- effectively send the raw message to socket */
+
+ if (NULL != socket) { // send only if socket is unequal to null
socket->send(static_cast<unsigned char*>(msgBuffer(0)),
msgBuffer.size());
+ } else { // socket pointer was null - not sending
+ D.Out( pdDebug, "Not sending -- socket is deleted." );
+ }
G.Out(pdGendoc,"exit NetworkMessage::send");
} /* end of send */
@@ -146,4 +151,4 @@
} // namespace certi
-// $Id: NetworkMessage_RW.cc,v 3.51 2008/05/30 14:04:47 erk Exp $
+// $Id: NetworkMessage_RW.cc,v 3.52 2008/10/23 13:46:19 erk Exp $
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/libCERTI NetworkMessage_RW.cc,
certi-cvs <=