I need to write a UDP server that will wait for packets from uncorrelated devices (maximum 10,000 of them) that periodically send small packets; do some processing using the payload and write the results in SQL. Now I'm done with the SQL part via jdbc, but the payload bytes continue to listen on me, how should I access them? So far, I have worked with a payload mapped to a string, and then converted the string to hexadecimal (two hexadecimal characters representing one byte). I know there is a better way to do this, but I don't know that ...
source share