Merging data packets

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.
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top