tags:

views:

80

answers:

1

Hi all,

I want to master certain raw protocols to learn about TCP Stream resuming.

I am versed in .Net sockets, and would like to initiate a TCP stream so:

Socket socket = new Socket(Tcp)
socket.connect(IPAddress);
socket.send(new byte[]{155});
socket.close();

Then be able to read the raw IO network card data sent/recieved and save it as

BitArray sentData;
BitArray recievedData;

Hope I can :) thanks.

+1  A: 

Use winpcap or the .NET bindings for it to capture/send raw network packets

nos