Hi,
"packet" in this case is an object created from the class"java.net.DatagramPacket".
The arguments "JavaNew["[B", 1024]
" and "1024
" depend on the class you are dealing with. For example, I can have a class "ConnectionUDPClient.class
" which I can call by obj = JavaNew["ConnectionUDPClient"]
.
Furthermore, it is possible to access methods inside the class. For the class above, I can have a method "sendMessage
" which I can invoke by "obj@sendMessage
". Finally, depending on the implemented method, it could also be possible to pass additional arguments.
Hope this helps.
Kind regards,
Ricardo