Results 1 to 10 of 13

Thread: RNL - Realtime Network Library - The opensource reliable UDP network lib for games

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    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?
    Last edited by SilverWarior; 13-09-2018 at 02:53 PM. Reason: Added code tags

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •