private byte[] GetRemoteReportBytes(string[] parents, ReporterClient reporterClient, ReportingMessage reporterMessage)
 {
     byte[] retVal;
     using (MessageWriter mw = new MessageWriter())
     {
         mw.Write <string[]>(parents);
         mw.Write <int>(reporterClient.clientID);
         mw.Write <byte[]>(reporterMessage.GetBytes());
         retVal = mw.GetMessageBytes();
     }
     return(retVal);
 }
예제 #2
0
 private byte[] GetReportMessageBytes(string serverID, ReporterClient client, ReportingMessage reportMessage)
 {
     byte[] retBytes;
     using (MessageWriter mw = new MessageWriter())
     {
         mw.Write <string>(serverID);
         mw.Write <int>(client.clientID);
         mw.Write <byte[]>(reportMessage.GetBytes());
         retBytes = mw.GetMessageBytes();
     }
     return(retBytes);
 }