Hey, I've been using your library to communicate between two programs. One is made in Delphi, other in Lazarus.
Code is pretty much taken out of provided example and modified to use 'real' network instead of virtual.
It works reliably but I'm having a slight problem, each time I send something to other program it takes about a second or two to arrive (on same machine).
Any idea what can cause such delay?
Sending looks like this:
Code:
procedure ServerPing;
var
buf:TBytes;
i: Integer;
begin
setlength(buf,1);
buf[0]:=byte(mtPing);
log('ping');
chrServer.Server.BroadcastMessageBytes(reliableChannel,buf);
end;
and receiving looks like this:
Code:
RNL_HOST_EVENT_TYPE_PEER_RECEIVE:begin
//ConsoleOutput('Server: A message received');
buf:=event.message.AsBytes;
case eMessageTypes(buf[0]) of
mtPing: log('pong');
Besides that, handshake error when one program is compiled as x86 and other as x64 is expected?
Bookmarks