Hmm, doesn't sound like your packet size is going to be an issue. I don't remember the limit off the top of my head but if you fall under it, windows buffers it with 0's. I beleive the default packet size is defined by the network card driver...
For storing 2000, you use two bytes. basically the first byte is 2000 mod 256 and the second byte is 2000 div 256.
To retreive the value, its simple:
(Byte2*256)+Byte1
:)
For storing 2000, you use two bytes. basically the first byte is 2000 mod 256 and the second byte is 2000 div 256.
To retreive the value, its simple:
(Byte2*256)+Byte1
:)