gpt4 book ai didi

linux - 我对 ERROR_PROTECTION_VIOLATION 感到困惑

转载 作者:太空宇宙 更新时间:2023-11-04 11:28:11 24 4
gpt4 key购买 nike

我使用 TCP 函数“recv”接收数据。然后使用 GetLastError() 显示错误 ID。它是 115。在 Windows error.h 中它是#define ERROR_PROTECTION_VIOLATION 115/* Bad user virtual address */。你能给我什么建议吗?PS:这个程序是在linux下运行的,不过我觉得linux && windows下的错误码肯定和TCP错误一样。

最佳答案

您在 Linux 下运行,因此它在 Windows error.h 中所说的完全无关紧要。在 Linux 的 errno.h 中, 115 是:

#define EINPROGRESS 115 /* Operation now in progress */

I think the error code in linux && windows must be the same as TCP error.

你没有这种信念的基础。

关于linux - 我对 ERROR_PROTECTION_VIOLATION 感到困惑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13173648/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com