I am trying to do something like this in order to open a server that can receive UPD text messages sent from another application. Where am I wrong? Because in the test I do, nothing happens
on *:udpread:test:{
if ($sockerr) { echo -s An error occured while trying to read data: $sock($sockname).wsmsg | return }
else {
sockread %a
echo -s rcvd: %a
}
}
alias start_udp_listener {
var %udpPort = 12345
sockudp -k test 127.0.0.1 %udpPort
echo -s UDP Server is listening on port %udpPort ...
}
/sockudp -t test 127.0.0.1 12345 hello