Before designing your program you will need to answer some questions:
- Is the server TCP or UDP?
- Are the data sent as ascii or binary integers?
- If the data are binary, are they in Network Byte Order?
- Are the data 16 bit, 32bit or 64bit integers?
Each of these questions will have an impact on your design. You'll need a different type of client for TCP vs. UDP. You'll need to unpack binary numbers. You'll need to unpack binary numbers with a or A depending on length if the numbers are in NBO.
HTH, --traveler