以下是引用吹水佬在2023-9-5 22:02:48的发言:
DECLARE LONG setsockopt IN "Ws2_32" long s ,long level,long optname ,string @optval ,long optlen
DECLARE LONG getsockopt IN "Ws2_32" long s ,long level,long optname ,string @optval ,long @optlen
setsockopt(this.obJECT.SocketHandle,SOL_SOCKET,SO_RCVBUF,@optval,optlen)
getsockopt(this.obJECT.SocketHandle,SOL_SOCKET,SO_RCVBUF,@optval,@optlen)
DECLARE LONG setsockopt IN "Ws2_32" long s ,long level,long optname ,string @optval ,long optlen
DECLARE LONG getsockopt IN "Ws2_32" long s ,long level,long optname ,string @optval ,long @optlen
setsockopt(this.obJECT.SocketHandle,SOL_SOCKET,SO_RCVBUF,@optval,optlen)
getsockopt(this.obJECT.SocketHandle,SOL_SOCKET,SO_RCVBUF,@optval,@optlen)
按你设置没有出错,但设置的0h00200000值,设置不上,
DECLARE LONG setsockopt IN "Ws2_32" long s ,long level,long optname ,string @optval ,long optlen
DECLARE LONG getsockopt IN "Ws2_32" long s ,long level,long optname ,string @optval ,long @optlen
optval= 0h00200000 &&0h00200000
optlen=LEN(optval)
?setsockopt(this.obJECT.SocketHandle,SOL_SOCKET,SO_RCVBUF,@optval,optlen)
optval= REPLICATE(0h00,4)
optlen=LEN(optval)
?getsockopt(this.obJECT.SocketHandle,SOL_SOCKET,SO_RCVBUF,@optval,@optlen),optval
返回结果
0
0 0h00000000