Changeset 423 for trunk/Network
- Timestamp:
- Apr 25, 2022, 6:01:01 PM (3 years ago)
- Location:
- trunk/Network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Network/UNetworkClient.pas
r382 r423 1 1 unit UNetworkClient; 2 3 {$mode delphi}4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils{$IFDEF LINUX}, fpAsync, fpsock{$ENDIF}, Protocol;6 Classes, SysUtils{$IFDEF UNIX}, fpAsync, fpsock{$ENDIF}, Protocol; 9 7 10 {$IFDEF LINUX}8 {$IFDEF UNIX} 11 9 type 12 10 { TTCPClientThread } … … 48 46 49 47 uses 50 LocalPlayer{$IFDEF LINUX}, Global, UNetworkCommon{$ENDIF};48 LocalPlayer{$IFDEF UNIX}, Global, UNetworkCommon{$ENDIF}; 51 49 52 50 procedure Client(Command, Player: Integer; var Data); 53 {$IFDEF LINUX}51 {$IFDEF UNIX} 54 52 var 55 53 Cmd: TCommand; 56 54 {$ENDIF} 57 55 begin 58 {$IFDEF LINUX}56 {$IFDEF UNIX} 59 57 Cmd := TCommand(Command); 60 58 case Cmd of … … 73 71 end; 74 72 75 {$IFDEF LINUX}73 {$IFDEF UNIX} 76 74 function LocalServer(Command, Player, Subject: Integer; var Data): Integer; stdcall; 77 75 begin -
trunk/Network/UNetworkCommon.pas
r365 r423 1 1 unit UNetworkCommon; 2 3 {$mode delphi}4 2 5 3 interface … … 10 8 procedure StreamAppend(Stream: TStream; SourceStream: TStream); 11 9 procedure StreamRemoveRead(Stream: TMemoryStream); 10 12 11 13 12 implementation -
trunk/Network/UNetworkServer.pas
r382 r423 1 1 unit UNetworkServer; 2 2 3 {$mode delphi}4 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils{$IFDEF LINUX}, fgl, fpAsync, fpsock, fphttpclient{$ENDIF}, Protocol;9 10 {$IFDEF LINUX}6 Classes, SysUtils{$IFDEF UNIX}, fgl, fpAsync, fpsock, fphttpclient{$ENDIF}, Protocol; 7 8 {$IFDEF UNIX} 11 9 type 12 10 TNetworkServer = class; … … 87 85 implementation 88 86 89 {$IFDEF LINUX}87 {$IFDEF UNIX} 90 88 uses 91 89 Global, UNetworkCommon; … … 94 92 procedure Client(Command, Player: integer; var Data); 95 93 begin 96 {$IFDEF LINUX}94 {$IFDEF UNIX} 97 95 if not Assigned(NetworkServer) then begin 98 96 NetworkServer := TNetworkServer.Create; … … 107 105 end; 108 106 109 {$IFDEF LINUX}107 {$IFDEF UNIX} 110 108 111 109 { TNetworkServerPlayers }
Note:
See TracChangeset
for help on using the changeset viewer.