c - 在套接字(windows)上启用 SO_DEBUG 时如何查看套接字信息?

标签 c windows winapi networking

int setsockopt(
  SOCKET s,
  int level,
  int optname,
  const char* optval,
  int optlen
);

SO_DEBUG

鼓励(但不要求)Windows Sockets 服务提供商提供 如果应用程序设置了 SO_DEBUG 选项,则输出调试信息。 生成调试信息的机制及其采用的形式 超出了本文档的范围。

我没有找到任何范围。

最佳答案

它不适用于 win32。

Enables debug output. Microsoft providers currently do not output any debug information.

我相信它与许多其他东西一起被拉出来以保持与 BSD 套接字 API 的兼容性。

关于c - 在套接字(windows)上启用 SO_DEBUG 时如何查看套接字信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6324647/

相关文章:

python - 以编程方式旋转监视器

python - 将一些 C 函数转换为 Python

c - 在 c 中将大量稀疏数组读/写到磁盘的有效方法

CRT 与共享库和应用程序的链接

c++ - 在 wxwidgets 中,如何锁定在 gui 线程和工作线程之间共享的 vector ?

python - WinError6 句柄无效 Python 3+ 多处理

c++ - 防止 MFC 应用程序将光标更改回默认图标

c - strtok_s 在 Windbg 中返回不正确的数据

c++ - realloc 分配失败

c++ - 创建 GDI 矩形图像