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(); }
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(); }