Administrator

Administrator

  • Admin
  • 2.2k
  • 1.4m

sockets

Apr 16 2003 9:47 AM
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