I am am attempting to write a program in Java that grabs specific data from a remote data server over the internet. I was provided an "example program" using pseudocode that was supposed to help me write a working class/program to grab such data for my use. However, I have found the "example program" to be quite confusing, and wonder if anyone reading this thread will be able to see something I haven't. The instructions are as follows (with my comments in round brackets):
1.) connect to the remote data server (host: xxxxxxxxx, port 8800)
2.) write 16 bytes of subscription data in network format (??) to the remote data server. Data is non-zero for the type of data that is being requested by the remote client. (Earlier in the doucument, several subscription options are present. Each option takes two bytes. I'm assuming that to "Enable" an option, pass 2 non-zero bytes in the 16 byte subscription header. However, I have no idea how to send such data in byte format using Java.)
3.) read configuration data from the remote data server and convert from network format (what do they mean by network format?). The amount of data received varies based on the subscription (this makes sense, though).
I will spare you the rest of the instructions. I am stuck on #1 as it is, so if I can figure out these first 3 steps, I will be in much better shape (if not, I will post the rest of the steps later).