Player APIs (BrightScript & Ja...
...
Object Reference
Networking Objects
roDatagramEvent
6min
this event object is generated when datagram packets are received by the rodatagramreceiver or rodatagramsocket objects ifdatagramevent getbytearray() as object returns the contents of the packet as an robytearray getsourcehost() as string returns the source ip address of the packet in dotted form getsourceport() as integer returns the source port of the packet ifstring getstring() as string ifuserdata setuserdata(user data as object) sets the user data getuserdata() as object returns the user data that has previously been set via setuserdata() (either on the source or event object) it will return invalid if no data has been set ifsourceidentity getsourceidentity() as integer the ifsourceidentity interface has been deprecated we recommend using the ifuserdata interface instead