0
Answer

sockets

Administrator

Administrator

21y
1.9k
1
i'm receiving a socket from a tcplistener and i'm trying to get all the data from the socket, but sometimes the socket claims to have 0 bytes availible for reading, how can i mke sure that i have all the data tha the socket is planning on sending before i handle the data it has sent. The sockets are all being opened by a browser, if that makes any difference. I thought maybe I would need to read from the socket in an asynchronous manner, but i find that confusing. basically i need all the data from the socket as a byte[] any suggestions would be graetfully appreciated