_Added in 2.3_
*on :UDPREAD:name:*
Triggers when there is info waiting to be read on the specified UDP connection.
You can read this info using the [[/sockread]] command.
_See also [[on SOCKREAD]], [[on SOCKOPEN]], [[on SOCKCLOSE]], [[on SOCKLISTEN]], [[on SOCKWRITE]], [[/socklisten]], [[/sockopen]], [[/sockaccept]], [[$sock]], [[$sockbr]], [[$sockerr]], [[$sockname]]._
*Parameters*
- The level for the event to trigger.
- The UDP [[$sockname]] to listen to.
- The commands to be performed when the event listener's criteria is met.
*Example*
on *:udpread:name:{
if ($sockerr) { echo -s An error occured while trying to read data: $sock($sockname).wsmsg | return }
else {
sockread %a
echo -s rcvd: %a
}
}