网络编码插座 [英] Network coding socket

查看:93
本文介绍了网络编码插座的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
请帮助我进行网络编码.我需要从用户级别(ring3)观看新套接字的创建.
我不知道从什么开始. TDI到afd.sys? DeviceIoControl?

Hello
Please help me with network coding. I need to watch creation of new sockets from user level (ring3).
I don''t know from what to begin. TDI to afd.sys? DeviceIoControl?

推荐答案

您的意思是您想监视基于Windows的PC上套接字的创建,对吗? (以便进行报告或类似功能)

首先DeviceIoControl是用于向驱动程序堆栈发送IRP的功能(简单地说,它用于从用户模式与驱动程序进行通信)

第二个TDI是网络驱动程序接口,我想您可以使用它来获取套接字列表,但这是内核模式编程,并且从构造问题的方式来看,我怀疑您是否能够开发驱动程序(至少现在还没有)除了您要查找的内容以外,还可以使用以下功能在用户模式下完成操作:

GetExtendedUDPTable
http://msdn.microsoft.com/en-us/library/aa365930 (v = vs.85).aspx [ http://msdn.microsoft.com/en-us/library/aa365928 (v = vs.85).aspx [
you mean you want to monitor the creation of sockets on a windows based pc, right? (in order to conduct reporting or similar functionality)

first DeviceIoControl is function used to send IRPs down driver stacks (in simple terms it is used to communicate with drivers from user mode)

second TDI is a network driver interface, I think you can use this to get a list of sockets but that is kernel mode programming and from the way you structured your question i doubt you will be able to develop a driver (at least not yet) besides that what you are looking for can be done in user mode by using the following functions:

GetExtendedUDPTable
http://msdn.microsoft.com/en-us/library/aa365930(v=vs.85).aspx[^]

GetExtendedTCPTable

http://msdn.microsoft.com/en-us/library/aa365928(v=vs.85).aspx[^]


这篇关于网络编码插座的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆