Select (FB) ¶ FUNCTION_BLOCK Select Encapsulates SysSockSelect Methods: Check CheckError CheckReceive CheckSend Structure: Check (Method) CheckError (Method) CheckReceive (Method) CheckSend (Method)
Select.Check (METH) ¶ METHOD Check : ERROR InOut: Scope Name Type Comment Input iTimeOut INT Time out in micro seconds Inout strRecvSet SysSocket.SOCKET_FD_SET List of streams to be checked for receive. Only streams which are ready for reception will remain in this list. strSendSet SysSocket.SOCKET_FD_SET List of streams to be checked for send. Only streams which are ready for sending will remain in this list. strErrorSet SysSocket.SOCKET_FD_SET List of streams to be checked for errors. Only streams which are having an error will remain in this list. Return Check ERROR Output diReady DINT
Select.CheckError (METH) ¶ METHOD CheckError : ERROR InOut: Scope Name Type Comment Input iTimeOut INT Time out in micro seconds; -1 is for infinite time out. Inout socketFD_SET SysSocket.SOCKET_FD_SET List of streams to be checked for errors. Only streams which are having an error will remain in this list. Return CheckError ERROR Output diReady DINT
Select.CheckReceive (METH) ¶ METHOD CheckReceive : ERROR InOut: Scope Name Type Comment Input iTimeOut INT Time out in micro seconds; -1 is for infinite time out. Inout socketFD_SET SysSocket.SOCKET_FD_SET List of streams to be checked for receive. Only streams which are ready for reception will remain in this list. Return CheckReceive ERROR Output diReady DINT
Select.CheckSend (METH) ¶ METHOD CheckSend : ERROR InOut: Scope Name Type Comment Input iTimeOut INT Time out in micro seconds; -1 is for infinite time out. Inout socketFD_SET SysSocket.SOCKET_FD_SET List of streams to be checked for send. Only streams which are ready for sending will remain in this list. Return CheckSend ERROR Output diReady DINT
Stream (FB) ¶ FUNCTION_BLOCK Stream Represents a tcp socket with which messages can be send/received Properties: IPAddress Socket State Methods: CheckConnectivity CheckReceive CheckSend Close Create FdIsSet FdSet GetOption IoControl Receive Reset Send SetOption Structure: CheckConnectivity (Method) CheckReceive (Method) CheckSend (Method) Close (Method) Create (Method) FdIsSet (Method) FdSet (Method) GetOption (Method) IoControl (Method) Properties IPAddress (Property) Socket (Property) State (Property) Receive (Method) Reset (Method) Send (Method) SetOption (Method)
Stream.CheckConnectivity (METH) ¶ METHOD CheckConnectivity : BOOL Return TRUE if connection is established, FALSE if an error occurred. InOut: Scope Name Type Return CheckConnectivity BOOL
Stream.CheckReceive (METH) ¶ METHOD CheckReceive : BOOL TRUE: Stream is ready to receive data. InOut: Scope Name Type Return CheckReceive BOOL
Stream.CheckSend (METH) ¶ METHOD CheckSend : BOOL TRUE: Stream is ready to send data. InOut: Scope Name Type Return CheckSend BOOL
Stream.Close (METH) ¶ METHOD Close : ERROR Closes the stream. InOut: Scope Name Type Return Close ERROR