c# tcp raw socket

Y

yex

Is there any way to handle tcp syn packets without setting SIO_RCVALL
socket options ?
The following works with icmp and udp msg but not with tcp connection
requests.

System.Net.Sockets.Socket srv_socket=new
System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork,System.Net.Sockets.SocketType.Raw,
System.Net.Sockets.ProtocolType.IP);
srv_socket.Bind(
new System.Net.IPEndPoint(System.Net.IPAddress.Parse("127.0.0.1"),
2000)//whatever you want
);
srv_socket.Receive(ReceiveBuffer);// handles udp and icmp message but
no tcp syn
 

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