Check the help file, /help /sockudp and /help on udpread

Basically you need to open a UDP socket with the -k switch and define a UDPread event to recieve the data.

Open the socket...
  • //sockudp -k xbox 8278 $ip 8278


and read the data...
Code:
on *:udpread:xbox:{
  var %a
  sockread -f %a
  echo -a %a
}