⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_38149.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:38149 发表者:xiongli 发表日期:2003-05-01 01:28:03
<br>主题:用什么socket方法可以管理ip全局设置?
<br>内容:比如说,怎么用socket来设定默认router地址?<BR>如何更改router table,就像这样<BR>route.exe add 61.145.112.211 mask 255.255.255.255 218.1.27.74 metric 1 if 0x1d0005<BR>如何查看某一个端口上有哪些ip连接<BR>等等<BR>这些内容应该属于socket的什么板块的内容?<BR>
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:neilgan 回复日期:2003-05-01 08:37:36
<br>内容:Socket api was designed to support multi protocals, not only TCP/IP. So, there is no function to operate the route table, which is a part of TCP/IP implementation.<BR><BR>If you want to operate the route table, you can always do a WinExec call to "route" cmd.<BR><BR>In Windows environment, TCP/IP settings ared save in registry. I had a file which describes the TCP/IP registry settings for Windows but I cann't find it now. I think you can find this information on Internet or on Microsoft's website.<BR><BR>If you really want to do it yourself, you can use Windows sockets SPI. Msdn-&gt; platform sdk-&gt; Networking and Distributed Services-&gt; Windows sockets Version 2-&gt; Windows Sockets Version 2 SPI. Using SPI, you can get full control of your TCP/IP protocal stack. You can even create your own protocals using SPI.
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -