Port.Socket (PROP) ¶ PROPERTY Socket : SysTypes.RTS_IEC_HANDLE
Port.Bind (METH) ¶ METHOD Bind : UDINT Bind the socket to a certain (local) address. InOut: Scope Name Type Comment Return Bind UDINT Input udiIPAddress UDINT Local IP Address the port shall be bound to.
Port.FdIsSet (METH) ¶ METHOD FdIsSet : BOOL Returns TRUE if the port’s socket is part of the file descriptor set InOut: Scope Name Type Return FdIsSet BOOL Input socketFD_SET SysSocket.SOCKET_FD_SET
Port.FdSet (METH) ¶ METHOD FdSet Adds the port’s socket to the file descriptor set InOut: Scope Name Type Inout socketFD_SET SysSocket.SOCKET_FD_SET
Port.GetOption (METH) ¶ METHOD GetOption : SysTypes.RTS_IEC_RESULT Sets an option on the socket InOut: Scope Name Type Comment Return GetOption SysTypes.RTS_IEC_RESULT Input diSockOption DINT Option to get pdiOption POINTER TO DINT Return value of option
Port.IoControl (METH) ¶ METHOD IoControl : SysTypes.RTS_IEC_RESULT Executes a command on the socket InOut: Scope Name Type Comment Return IoControl SysTypes.RTS_IEC_RESULT Input diCommand DINT Command to execute pdiParam POINTER TO DINT Command result
Port.SetOption (METH) ¶ METHOD SetOption : SysTypes.RTS_IEC_RESULT Sets an option on the socket InOut: Scope Name Type Comment Return SetOption SysTypes.RTS_IEC_RESULT Input diSockOption DINT Option to set pdiOptionValue POINTER TO DINT Value of option diOptionLength DINT Length of the option value
Port (FB) ¶ FUNCTION_BLOCK Port Represent a UDP Port, which is managed (opened and closed) by an UDPDriver. Properties: IPAddress ReceivePort SendPort Socket Methods: Receive Receive2 Send Bind FdIsSet FdSet GetOption IoControl JoinGroup LeaveGroup SetInterface SetOption Structure: Multicast JoinGroup (Method) LeaveGroup (Method) SetInterface (Method) Properties IPAddress (Property) ReceivePort (Property) SendPort (Property) Socket (Property) Receive (Method) Receive2 (Method) Send (Method) Socket Bind (Method) FdIsSet (Method) FdSet (Method) GetOption (Method) IoControl (Method) SetOption (Method)
Multicast ¶ JoinGroup (Method) LeaveGroup (Method) SetInterface (Method)
Properties ¶ IPAddress (Property) ReceivePort (Property) SendPort (Property) Socket (Property)