how to receive all data with UDP client
am new in Java Programming and need some help .
I wan to read all data sending from a UDP server but i have many problem in this way. The fact is , when i send some command (String text) to the server, he send a big string as response.
My question are :
1- how can i read all this data sending from server before closing the socket connection. ( i think the client have to stay in receive mode until he received all data, but how to do this ? )
2- when a read a answer how can i know the end of the message sending from the server
3- If somebody has some example, they will help me
Thank you for you answer and sorry for my bad english