Merging data packets

  • Thread starter Thread starter Giu
  • Start date Start date
G

Giu

Hi ,sorry i'm a beginner and i need help.
I have to merge a lot of binary packets into a file on hard drive.
I get every packet from a network card with socket class in mydata variable
in a separate thread.

byte[] mydata=new Byte[512];

Please could anyone give me an example how to merge the packets and
retrieve them in a file?

TIA.
 
Giu,

What you will want to do is create an instance of the FileStream class
and make calls to the Write method, passing the byte array along. It's that
easy.

Hope this helps.
 
Back
Top