How to read large data from socket
I'm working with socket programming (client) to read large data size from server. the server will be sending the data in bellow format
First 2 digits - length of the packet in hex
Example,
000A60000400000200203805 (000A is the message length in hex)
black beatles lyrics
The problem is that when message length is more than 7000, it's not reading entire data in socket tunnel. Further I have just checked in java using readfully() method then it's working properly (read entire length of message)
http://songlyricsaz.mobi/one-call-away-lyrics-189.html
Please anyone has expert for this ?
Regards,