public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumOperatorRequestMethods.SERVER_LOGINBACK_HASH: result = ParseLoginBack(byteArray); break; case EnumOperatorRequestMethods.CLIENT_REQUESTERROR_HASH: byteArray.EncryptKey = EnumOperatorRequestMethods.CLIENT_REQUESTERROR_HASH; byteArray.readDynamicsInt(); int reason = byteArray.readDynamicsInt(); byteArray.EncryptKey = 0; return(string.Format("Client Request Error {0}", reason)); } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumMonitorMethods.CLIENT_STATUSREPORT_HASH: result = ParseStatusReport(byteArray); break; case EnumMonitorMethods.CLIENT_SENDMESSAGE_HASH: result = ParseSendMessage(byteArray); break; case EnumMonitorMethods.CLIENT_COMMANDRESULT_HASH: result = ParseCommandResult(byteArray); break; } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumMonitorMethods.SERVER_QUERYSTATUS_HASH: result = ParseQueryStatus(byteArray); break; case EnumMonitorMethods.SERVER_EXECUTECOMMAND_HASH: result = ParseExecuteCommand(byteArray); break; case EnumMonitorMethods.CLIENT_REQUESTERROR_HASH: byteArray.EncryptKey = EnumMonitorMethods.CLIENT_REQUESTERROR_HASH; byteArray.readDynamicsInt(); int reason = byteArray.readDynamicsInt(); byteArray.EncryptKey = 0; return(string.Format("Client Request Error {0}", reason)); } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumDeamonMethods.CLIENT_GETINSTANCELISTRESPONSE_HASH: result = ParseGetInstanceListResponse(byteArray); break; case EnumDeamonMethods.CLIENT_GETMACHINERESPONSE_HASH: result = ParseGetMachineResponse(byteArray); break; case EnumDeamonMethods.CLIENT_STARTINSTANCERESULT_HASH: result = ParseStartInstanceResult(byteArray); break; case EnumDeamonMethods.CLIENT_STOPINSTANCERESULT_HASH: result = ParseStopInstanceResult(byteArray); break; } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumFileMethods.CLIENT_REQUESTFILEDOWNLOAD_HASH: result = ParseRequestFileDownload(byteArray); break; case EnumFileMethods.CLIENT_FILESENDRESPONSE_HASH: result = ParseFileSendResponse(byteArray); break; case EnumFileMethods.CLIENT_SENDFINISHRESPONSE_HASH: result = ParseSendFinishResponse(byteArray); break; case EnumFileMethods.CLIENT_FILEBLOCKRESPONSE_HASH: result = ParseFileBlockResponse(byteArray); break; case EnumFileMethods.CLIENT_CREATEDIRECTORYRESULT_HASH: result = ParseCreateDirectoryResult(byteArray); break; case EnumFileMethods.CLIENT_LISTDIRECTORYSRESULT_HASH: result = ParseListDirectorysResult(byteArray); break; case EnumFileMethods.CLIENT_DELETEDIRECTORYRESULT_HASH: result = ParseDeleteDirectoryResult(byteArray); break; case EnumFileMethods.CLIENT_DELETEFILERESULT_HASH: result = ParseDeleteFileResult(byteArray); break; case EnumFileMethods.CLIENT_SETWORKINGDIRECTORYRESULT_HASH: result = ParseSetWorkingDirectoryResult(byteArray); break; } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumDeamonMethods.SERVER_GETINSTANCELIST_HASH: result = ParseGetInstanceList(byteArray); break; case EnumDeamonMethods.SERVER_GETMACHINESTATE_HASH: result = ParseGetMachineState(byteArray); break; case EnumDeamonMethods.SERVER_DEPLOYINSTANCE_HASH: result = ParseDeployInstance(byteArray); break; case EnumDeamonMethods.SERVER_STARTINSTANCE_HASH: result = ParseStartInstance(byteArray); break; case EnumDeamonMethods.SERVER_STOPINSTANCE_HASH: result = ParseStopInstance(byteArray); break; case EnumDeamonMethods.CLIENT_REQUESTERROR_HASH: byteArray.EncryptKey = EnumDeamonMethods.CLIENT_REQUESTERROR_HASH; byteArray.readDynamicsInt(); int reason = byteArray.readDynamicsInt(); byteArray.EncryptKey = 0; return(string.Format("Client Request Error {0}", reason)); } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumPortalReportMethods.CLIENT_REPORTSTATUS_HASH: result = ParseReportStatus(byteArray); break; } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumOperatorRequestMethods.CLIENT_LOGIN_HASH: result = ParseLogin(byteArray); break; } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }
public static String ParseMessage(ByteArray byteArray, ParamedDelegate <String> dumper) { byteArray.BypassHeader(); int methodID = byteArray.readInt(); String result = String.Empty; switch (methodID) { case EnumFileMethods.SERVER_REQUESTFILESEND_HASH: result = ParseRequestFileSend(byteArray); break; case EnumFileMethods.SERVER_REQUESTFILEBLOCK_HASH: result = ParseRequestFileBlock(byteArray); break; case EnumFileMethods.SERVER_STARTBATCH_HASH: result = ParseStartBatch(byteArray); break; case EnumFileMethods.SERVER_BATCHCOMPLETE_HASH: result = ParseBatchComplete(byteArray); break; case EnumFileMethods.SERVER_CREATEDIRECTORY_HASH: result = ParseCreateDirectory(byteArray); break; case EnumFileMethods.SERVER_LISTDIRECTORYS_HASH: result = ParseListDirectorys(byteArray); break; case EnumFileMethods.SERVER_DELETEDIRECTORY_HASH: result = ParseDeleteDirectory(byteArray); break; case EnumFileMethods.SERVER_DELETEFILE_HASH: result = ParseDeleteFile(byteArray); break; case EnumFileMethods.SERVER_SETWORKINGDIRECTORY_HASH: result = ParseSetWorkingDirectory(byteArray); break; case EnumFileMethods.SERVER_SENDDIRECTORYFAILED_HASH: result = ParseSendDirectoryFailed(byteArray); break; case EnumFileMethods.SERVER_SENDFILEFAILED_HASH: result = ParseSendFileFailed(byteArray); break; case EnumFileMethods.CLIENT_REQUESTERROR_HASH: byteArray.EncryptKey = EnumFileMethods.CLIENT_REQUESTERROR_HASH; byteArray.readDynamicsInt(); int reason = byteArray.readDynamicsInt(); byteArray.EncryptKey = 0; return(string.Format("Client Request Error {0}", reason)); } if (result != String.Empty) { dumper(result); } // recover the header byteArray.Rewind(); return(result); }