hi there,
i playing around with an async server, i use BeginReceive with byte array to store incoming data, when a "big" data come, a call back receive can not read it all in one time, so i need repeat call back, i want know how to cache all incoming data in byte array? like byte buffer class in java
searching..., seem they will do: convert a part of data (in byte array) to string and use StringBuilder to store it, append next part in next call back, check a flag in string to know when they received all data.
But i don't want convert byte stream to string, with byte array i can easily cast, read data from it by using MemoryStream and BinaryReader
hope you guys can help me out, thanks