PacketPool (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL PacketPool EXTENDS _Disposable IMPLEMENTS IPacketPool Provides a pool of IPacket instances. Use the GetPacket method to get a new instance. InOut: Scope Name Type Initial Comment Input Const udiPacketSize UDINT 16#FFFFFFFF udiInitialCapacity UDINT pbyPool POINTER TO BYTE The optional memory space for the packet pool. pbyPool = 0 => Memory is allocated from Heap pbyPool <> 0 => The related static Memory of size udiPoolSize is used. udiPoolSize UDINT The size of the memory area referenced by pbyPool usiExtensionFactor USINT Methods: SetInitialValue GetPacket Structure: IPacketPool GetPacket (Method) SetInitialValue (Method)
IPacketPool ¶ GetPacket (Method)
PacketPool.GetPacket (METH) ¶ METHOD FINAL GetPacket : POINTER TO BYTE InOut: Scope Name Type Initial Return GetPacket POINTER TO BYTE Input itfIPAddress IIPAddress 0 uiPort UINT 0 Output itfPacket IPacket udiSize UDINT eErrorID ERROR
PacketPool.SetInitialValue (METH) ¶ METHOD FINAL SetInitialValue : ERROR InOut: Scope Name Type Return SetInitialValue ERROR Input udiPacketSize UDINT udiInitialCapacity UDINT pbyPool POINTER TO BYTE udiPoolSize UDINT usiExtensionFactor USINT
PacketQueue (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL PacketQueue IMPLEMENTS IPacketQueue , IEventHandler InOut: Scope Name Type Input Const pudiCounter POINTER TO UDINT Methods: GetPacket PutPacket Structure: IPacketQueue GetPacket (Method) PutPacket (Method)
IPacketQueue ¶ GetPacket (Method) PutPacket (Method)
TCP_Client.SetOptionProvider (METH) ¶ METHOD FINAL SetOptionProvider : IOptionProvider This method sets the costumer implemented IOptionProvider instance to client For instance there is a function block, which implements interface IOptionProvider named ‘ClientOptions(FB)’ VAR myClientOptions : ClientOptions ; myClient : NBS.TCP_Client ; eErrorID : NBS.ERROR ; itfOptionProvider : NBS.IOptionProvider := myClient.SetOptionProvider ( myClientOptions , eErrorID => eErrorID ); END_VAR InOut: Scope Name Type Return SetOptionProvider IOptionProvider Input itfOptionProvider IOptionProvider Output eErrorID ERROR
TCP_Client.SetInitialValue (METH) ¶ METHOD FINAL SetInitialValue : ERROR InOut: Scope Name Type Return SetInitialValue ERROR Input itfAsyncProperty IAsyncProperty itfTLSContext ITLSContext itfTSNContext ITSNContext
IConnection ¶ GetClientAddress (Method) Read (Method) Write (Method)
TCP_Connection.GetClientAddress (METH) ¶ METHOD GetClientAddress : ERROR InOut: Scope Name Type Return GetClientAddress ERROR Inout itfIPAddress IIPAddress Output uiPort UINT