Hi, Yes I am using v6 beta of ICS which works very well for me but I still
can't get the rcvbuf size to take.
I searched the source code of OverbyteICSwSocket.pas and located the line
FSocketRcvBufSize : Integer; { Winsock internal socket Recv buffer size }
but this is all I found.
FPiette wrote this code
procedure TCustomWSocket.SetSocketRcvBufSize(BufSize : Integer);
var
iStatus : Integer;
optlen : Integer;
begin
optlen := SizeOf(BufSize);
{$IFDEF CLR}
iStatus := WSocket_setsockopt(FHSocket, SOL_SOCKET, SO_RCVBUF,
BufSize, optlen);
{$ELSE}
iStatus := WSocket_setsockopt(FHSocket, SOL_SOCKET, SO_RCVBUF,
PChar(@BufSize), optlen);
{$ENDIF}
if iStatus = 0 then
FSocketSndBufSize := BufSize
else
SocketError('setsockopt(SO_RCVBUF)');
end;
on ICS mailing list to add into that source code unit but where should I put
this in the unit and how would I declare it so that I can use this procedure
and where would this declaration go? Also should I be calling this in the
SessionConnected event? This is very important to me to figure out. Thanks
in advance
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be