回复 10楼 吹水佬
#define SOL_SOCKET 65535 && 1也没用#define SO_REUSEADDR 0x0004
#define SO_SNDBUF 7
#define SO_RCVBUF 8
optval= REPLICATE(0h00,4)
?setsockopt( this.obJECT.SocketHandle, SOL_SOCKET, SO_REUSEADDR ,bintoc(1,"4rs") , 4) &&
? this.obJECT.SocketHandle,WSAGetLastError()
?getsockopt(this.obJECT.SocketHandle, SOL_SOCKET, SO_REUSEADDR,@optval, 4),optval
?WSAGetLastError()
?getsockopt(this.obJECT.SocketHandle,SOL_SOCKET,SO_RCVBUF,@optval,4),optval
返回:
0
1376,0
-1
0
-1
[此贴子已经被作者于2023-9-1 15:01编辑过]