阅读:1821回复:7
驱动程序调用SOCKET函数库
在编写的驱动程序里面能直接调用Winsocket函数库吗?若不能,驱动程序涉及到TCP/IP通信该怎么处理?若能直接调用,有什么注意事项没有?
|
|
沙发#
发布于:2002-08-25 16:47
不能调用
|
|
板凳#
发布于:2002-08-25 17:41
不能的
|
|
地板#
发布于:2002-08-25 19:21
如果在驱动程序里涉及TCP/IP通信,那该怎么办?
|
|
地下室#
发布于:2002-09-29 13:01
用DriverStudio中的TDI Client(DriverSocket),它的用法与WINSOCKET相类似,只是它是运行在驱动底层的。
另,还有OSR的KSOCKS也能实现驱动层的TCP/IP通信。不过我不知道在哪有它的免费下载。 有哪位高人知道,请告诉我。 |
|
|
5楼#
发布于:2002-09-30 01:31
I never find a place to download KSOCKS freely. I once reseached kernel socket and searched on Internet. If what you want is a simple TCP connection in kernel mode, the following link maybe useful to you.
http://groups.google.com/groups?q=ZwCreateFile+%22tcp%22&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=01bd6936%2476bb78b0%241eadf6a8%40caopi2&rnum=11 If you want a complete kernel socket solution, you\'d better have KSOCKS from OSR or TDIClient framework from DriverNetwork. I only read the API documentation of KSOCKS, it has almost the same interface as berkeley socket while TDICLIENT in DriverNetwork is a C++ framework. But it should be easy to extract TDICLIENT out of DriverNetwork. |
|
|
6楼#
发布于:2002-09-30 18:06
不能,可以用TDI Client,我已经将他们写成和socket类似的函数如果需要告诉我email可以免费给你源代码,绝对可用且为本人亲手所写,已在某个产品中使用了。
|
|
|
7楼#
发布于:2002-10-01 18:14
不能,可以用TDI Client,我已经将他们写成和socket类似的函数如果需要告诉我email可以免费给你源代码,绝对可用且为本人亲手所写,已在某个产品中使用了。 :P :P :P :P :P 可以给我一份吗 ? xuyonjin@163.com 刚学作驱动的 |
|