Using raw sockets with C#

前端 未结 3 1647
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 23:22

I want to write a port scanner in C# and I can\'t use SocketType.Raw as raw sockets were taken out from desktop versions of windows. I can\'t use SharpPcap either or other w

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 23:51

    Just like this:

    http://www.winsocketdotnetworkprogramming.com/clientserversocketnetworkcommunication8h.html

    Also, at what point was it removed from Windows? I did a chat client for a friend last week; as well, http://msdn.microsoft.com/en-us/library/system.net.sockets.sockettype.aspx , still lists it as being active.

提交回复
热议问题