Returns 0 for no activity and non zero for activity. You need to call CheckSockets() at some point before this otherwise it will always return 0.
If UDP_SocketReady ( 0 ) > 0 Then
'Socket has activity so we can do something here
End If
Related: CheckSockets