UDPFunctions for Controller and Simulator

UDP is a communications protocol which allows computers to exchange messages across an IP network.

When a UDP packet is sent to a broadcast address (e.g., 255.255.255.255), the controller automatically converts the given broadcast address to the broadcast address of its Ethernet interface.

Example

If the controller's IP address is 192.168.1.10 and the subnet mask is 255.255.255.0,
the controller's Ethernet interface broadcast address is 192.168.1.255.

UDP Functions

This list of UDP functions allows a controller to communicate with a remote PC or another KAS controller over an Ethernet network.

Name

Description

udpAddrMake

Build an address buffer for UDP functions.

udpClose

Closes a socket.

udpCreate

Creates a UDP socket.

udpIsValid

Tests if a socket is valid.

udpRcvFrom

Receives a UDP telegram.

udpRcvFromArray

Receives a byte array through UDP.

udpRcvFromVar

Receives the contents of a variable from another controller through UDP.

udpSendTo

Sends a UDP telegram.

udpSendToArray

Sends a byte array through UDP.

udpSendToVar

Sends the contents of a local variable to another controller through UDP.