I am using socket class for udp connection. I have to receive data from server but i do not know the size of data. In receive method we have to send byte array. Is there any way i can know how much bytes are available to read so that i can make an array of bytes for that size?