IRdtProtClient (ITF) ¶ INTERFACE IRdtProtClient EXTENDS IRdtProt Interface for Redundancy Data Transfer Client Properties: Active , inherited from IRdtProt Busy , inherited from IRdtProt Enable , inherited from IRdtProt Error , inherited from IRdtProt ErrorCode , inherited from IRdtProt IPAddress , inherited from IRdtProt Port , inherited from IRdtProt RcvTimeout , inherited from IRdtProt TrsTimeout , inherited from IRdtProt Methods: ExecCommand CyclicCall , inherited from IRdtProt SetNewCertificate , inherited from IRdtProt Structure: ExecCommand (Method)
IRdtProtClient.ExecCommand (METH) ¶ METHOD ExecCommand Execution of a command in Client side: command is sent to server InOut: Scope Name Type Comment Input uiCmd UINT Command pDataTrs __XWORD Pointer to the data to transmit diLen DINT Data length to transmit pDataRcv __XWORD Pointer where to write data received diSizeRcv DINT Maximum size of the above buffer Output xDone BOOL Operation done, with or without errors error INT Error uiAns UINT Answer diLenRcv DINT Data length received
IRdtProtServer (ITF) ¶ INTERFACE IRdtProtServer EXTENDS IRdtProt Interface for Redundancy Data Transfer Server Properties: Active , inherited from IRdtProt Busy , inherited from IRdtProt Enable , inherited from IRdtProt Error , inherited from IRdtProt ErrorCode , inherited from IRdtProt IPAddress , inherited from IRdtProt Port , inherited from IRdtProt RcvTimeout , inherited from IRdtProt TrsTimeout , inherited from IRdtProt Methods: RegisterCommand CyclicCall , inherited from IRdtProt SetNewCertificate , inherited from IRdtProt Structure: RegisterCommand (Method)
IRdtProtServer.RegisterCommand (METH) ¶ METHOD RegisterCommand : INT It registers the interface to handle the command arrive in the server InOut: Scope Name Type Return RegisterCommand INT Input itfServerCommand IServerCommand
IServerCommand (ITF) ¶ INTERFACE IServerCommand EXTENDS __SYSTEM.IQueryInterface Interface to handle the commands arriving on the server side Methods: Exec Structure: Exec (Method)
IServerCommand.Exec (METH) ¶ METHOD Exec Elaboration of a command in Server side: command is elaborated and next send the answer to client InOut: Scope Name Type Comment Input uiCmd UINT Command code pDataRcv __XWORD Pointer where are the data received diSizeRcv DINT Data received Output pDataTrs __XWORD Pointer to the data to transmit back diSizeTrs DINT Data to transmit uiAns UINT Answer code iError INT Error to transmit back
RDT_Base (FB) ¶ FUNCTION_BLOCK ABSTRACT RDT_Base Base FB for TCP activities in Redundancy Data Transfer Properties: IPAddress Port RcvTimeout TrsTimeout Methods: FlushRec ReceiveBytes SendBytes SetTLSContext Structure: FlushRec (Method) IRdtProt IPAddress (Property) Port (Property) RcvTimeout (Property) TrsTimeout (Property) ReceiveBytes (Method) SendBytes (Method) SetTLSContext (Method)
RDT_Server.Active (PROP) ¶ PROPERTY Active : BOOL
RDT_Server.Busy (PROP) ¶ PROPERTY Busy : BOOL Operation is running
RDT_Server.Create (METH) ¶ METHOD Create : IRdtProtServer It creates and initializes the object Server InOut: Scope Name Type Comment Return Create IRdtProtServer Input pStruIni POINTER TO RdtInitStructServerTCP Parameters to use Output error INT