procedure e_Buffer_Write(B: pTBuffer; V: ShortInt); overload;
procedure e_Buffer_Write(B: pTBuffer; V: SmallInt); overload;
procedure e_Buffer_Write(B: pTBuffer; V: LongInt); overload;
+procedure e_Buffer_Write(B: pTBuffer; V: Int64); overload;
procedure e_Buffer_Write(B: pTBuffer; V: string); overload;
begin
e_Buffer_Write_Generic(B, V, 4);
end;
+procedure e_Buffer_Write(B: pTBuffer; V: Int64); overload;
+begin
+ e_Buffer_Write_Generic(B, V, 8);
+end;
procedure e_Buffer_Write(B: pTBuffer; V: string); overload;
var
pixels, obuf, scln, ps, pd: PByte;
obufsize: Integer;
dlen: Cardinal;
- tmp: Byte;
i, res: Integer;
sign: array [0..7] of Byte;
hbuf: array [0..12] of Byte;
e_log, e_fixedbuffer, ENet, ENetTypes, ENetPlatform, Classes;
const
- NET_PROTOCOL_VER = 164;
+ NET_PROTOCOL_VER = 165;
NET_MAXCLIENTS = 24;
NET_CHANS = 11;
var
ClAddr: ENetAddress;
Buf: ENetBuffer;
- Len, ClTime: Integer;
- Ping: array [0..5] of Byte;
+ Len: Integer;
+ ClTime: Int64;
+ Ping: array [0..9] of Byte;
NPl: Byte;
begin
if NetPongSock = ENET_SOCKET_NULL then Exit;
Buf.data := Addr(Ping[0]);
- Buf.dataLength := 6;
+ Buf.dataLength := 2+8;
Ping[0] := 0;
if (Ping[0] = Ord('D')) and (Ping[1] = Ord('F')) then
begin
- ClTime := Integer(Addr(Ping[2])^);
+ ClTime := Int64(Addr(Ping[2])^);
e_Buffer_Clear(@NetOut);
e_Buffer_Write(@NetOut, Byte(Ord('D')));
uses g_net, g_triggers, Classes, SysUtils, md5;
const
- NET_PROTO_VERSION = 1;
+ NET_PROTO_VERSION = 2;
NET_MSG_INFO = 100;