Hi All,
I am using nxnetwork.pas in a little program I am creating.
It allows to set a "key" to be used with TCP communication.
When I set the key string to '' the program runs fine but as soon as I use a key the program fails here
procedure TConnection.MaskCrypt(p: {$IFDEF fpc}PByte{$ELSE}PByteArray{$ENDIF};
size: integer);
var i, l: integer;
begin
l := length(FMask);
if l<1 then exit;
for i := 0 to size-1 do p[i] := p[i] xor byte(FMask[(i mod l)+1]);
end;
I get a SIGSEGV.
Can anyone tell me how to fix this?