Send TCP packet in C#

后端 未结 6 1150
栀梦
栀梦 2020-12-17 06:55

I want to send a TCP packet (with a custom header) in C#. The building of such packets is no problem, and I have the data in a byte array. But how can I send this packet ove

6条回答
  •  余生分开走
    2020-12-17 07:25

    For making custom packets and sending on the network you should take a look at Pcap.Net. Check out the sample code presented in an answer to Stack Overflow question "IP address spoofing using SharpPcap on C#".

提交回复
热议问题