我想请问下在windows mobile低下
KeepAlive是如何实现的 int keepAlive = -1744830460; // SIO_KEEPALIVE_VALS
byte[] inValue = new byte[] { 1, 0, 0, 0, 0x20, 0x4e, 0, 0, 0xd0, 0x07, 0, 0 }; //True, 20 秒, 2 秒
sock.IOControl(keepAlive, inValue, null);
这是网络上找的 但是却报“提供的参数错误” 如何解决,谢谢!
KeepAlive是如何实现的 int keepAlive = -1744830460; // SIO_KEEPALIVE_VALS
byte[] inValue = new byte[] { 1, 0, 0, 0, 0x20, 0x4e, 0, 0, 0xd0, 0x07, 0, 0 }; //True, 20 秒, 2 秒
sock.IOControl(keepAlive, inValue, null);
这是网络上找的 但是却报“提供的参数错误” 如何解决,谢谢!
尝试其他值看看
你说的那介绍我也看过了,我也是类似这样的做法,但是就是报错了