I am creating a small TFTP client server app where server is developed using c++ and client using java.
Here i am sending "block count" value
 using  htons conversion.
But i am not able to convert it back to its original value at client.
For example if am sending block count
 ntohs(01) (2 bytes) from server to
 client. Client is reading in bytes.
 Value which I am receiving is byte 0
 and byte 1.
Please if any one can provide a solution.