Ejemplo n.º 1
0
 private void OnMessage(uint seq, int source_handle, int dest_handle,
                        IntPtr data, int len)
 {
     try
     {
         byte[] bytes = new byte[len];
         Marshal.Copy(data, bytes, 0, len);
         m_Channel.Dispatch(source_handle, seq, bytes);
     }
     catch (Exception ex)
     {
         LogSys.Log(LOG_TYPE.ERROR, "Exception {0}\n{1}", ex.Message, ex.StackTrace);
     }
 }