PacketQueue.GetPacket (METH) ¶ METHOD FINAL GetPacket : IPacket InOut: Scope Name Type Return GetPacket IPacket Output eErrorID ERROR
PacketQueue.PutPacket (METH) ¶ METHOD FINAL PutPacket : ERROR InOut: Scope Name Type Return PutPacket ERROR Input itfPacket IPacket
IOptionConsumer ¶ SetOptionProvider (Method)
UDP_Peer.SetOptionProvider (METH) ¶ METHOD FINAL SetOptionProvider : IOptionProvider This method sets the costumer implemented IOptionProvider instance to UDP_Peer For instance there is a function block, which implements interface IOptionProvider named ‘UDPOptions(FB)’ VAR myUDPOptions : UDPOptions ; udpPeer : NBS.UDP_Peer ; eErrorID : NBS.ERROR ; itfOptionProvider : NBS.IOptionProvider := udpPeer.SetOptionProvider ( myUDPOptions , eErrorID => eErrorID ); END_VAR InOut: Scope Name Type Return SetOptionProvider IOptionProvider Input itfOptionProvider IOptionProvider Output eErrorID ERROR
UDP_Peer.Receive (METH) ¶ METHOD FINAL Receive : ERROR InOut: Scope Name Type Return Receive ERROR Input pData __XWORD udiSize UDINT Inout itfIPAddressFrom IIPAddress Output uiPortFrom UINT udiCount UDINT
UDP_Peer.Receive2 (METH) ¶ METHOD FINAL Receive2 : ERROR InOut: Scope Name Type Return Receive2 ERROR Input pData __XWORD udiSize UDINT Inout itfIPAddressFrom IIPAddress Output uiPortFrom UINT udiCount UDINT eTransmission TRANSMISSION
UDP_Peer.Send (METH) ¶ METHOD FINAL Send : ERROR InOut: Scope Name Type Initial Return Send ERROR Input itfIPAddress IIPAddress uiPort UINT pData __XWORD udiSize UDINT udiPriority UDINT 0 Output udiCount UDINT
CreateSegment (FUN) ¶ FUNCTION CreateSegment : ISegment Returns a ISegment instance placed in the memory area given by the parameters InOut: Scope Name Type Return CreateSegment ISegment Input pbyMemory POINTER TO BYTE udiMemSize UDINT Output udiSegmentSize UDINT eErrorID ERROR
CreateSegmentPool (FUN) ¶ FUNCTION CreateSegmentPool : ISegmentPool Creates a pool for ISegment instances in the specified memory space The size of the segments is specified via udiSegmentSize InOut: Scope Name Type Initial Return CreateSegmentPool ISegmentPool Input udiSegmentSize UDINT pbyPool POINTER TO BYTE udiPoolSize UDINT usiExtensionFactor USINT 0 Output eErrorID ERROR
SegmentPool (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL SegmentPool EXTENDS _Disposable IMPLEMENTS ISegmentPool Provides a pool of ISegment instances. Use the GetSegment method to get a new instance. InOut: Scope Name Type Initial Comment Input Const udiSegmentSize UDINT UDINT#16#FFFFFFFF udiInitialCapacity UDINT pbyPool POINTER TO BYTE The optinonal memory space for the segment 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 GetSegment ObjectDispose Structure: IDisposable ObjectDispose (Method) ISegmentPool GetSegment (Method) SetInitialValue (Method)