示例#1
0
 public void SubmitStream4DestinationTx(byte [] data)
 {
     EnterDestinationStreamCriticalArea();
     try
     {
         m_destinationStream.AddBytes(data);
         m_SubmittedMsgsServer++;
         m_SubmittedServer += (uint)data.Length;
     }
     catch (Exception exc)
     {
         LogUtility.LogUtility.LogFile(Convert.ToString(m_Id) + " EXCEPTION " + exc.Message + " " + exc.StackTrace, LogUtility.LogLevels.LEVEL_LOG_HIGH);
     }
     LeaveDestinationStreamCriticalArea();
 }
示例#2
0
 public void SubmitStream4ClientTx(byte [] data)
 {
     EnterClientStreamCriticalArea();
     try
     {
         m_clientStream.AddBytes((byte[])data);
         m_SubmittedMsgsClient++;
         m_SubmittedClient += (uint)((byte[])data).Length;
     }
     catch (Exception exc)
     {
         LogUtility.LogUtility.LogFile(Convert.ToString(m_Id) + " EXCEPTION " + exc.Message + " " + exc.StackTrace, LogUtility.LogLevels.LEVEL_LOG_HIGH);
     }
     LeaveClientStreamCriticalArea();
 }