Analysis and Design of a Modern SCADA System

(fajer) #1

A4- 4


Reads a datagram from a UDP socket, returning the results in
data out. The function returns data when it receives any bytes, and
waits the full timeout ms only if it receives no bytes.
Connection ID is a network connection refnum that uniquely
identifies the UDP socket.
Max size is the maximum number of bytes to read. The default is


  1. Windows If you wire a value other than 548 to this input,
    Windows might return an error because the function cannot read
    fewer bytes than are in a packet.
    Timeout ms is in milliseconds. If no bytes have been received
    within the specified time, the function completes and returns an
    error. The default is 25,000 ms. A value of –1 indicates to wait
    indefinitely.
    Error in describes error conditions that occur before this VI or
    function runs. The default is no error.
    Connection ID out returns the same value as connection ID.
    Data out contains the data read from the UDP datagram.
    Error out contains error information.
    port is the port of the UDP socket that sent the datagram.
    Address is the address of the computer where a datagram
    originates.


A 4. 9 UDP Close

Closes a UDP socket.
connection ID is a network connection refnum that uniquely
identifies the UDP socket you want to close.
Free download pdf