-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathCold.pas
51 lines (40 loc) · 1023 Bytes
/
Cold.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
program Cold;
{$mode Delphi}{$H+}
uses
cthreads,classes,LCLIntf,LCLType,sysutils,
ConnectionThread,
PacketTypes,
IdGlobal,IdTCPClient,IdCompressionIntercept,
FilesFunc;
function OSVersion: string;
var
osErr: integer;
response: longint;
begin
Result := '';
end;
var
thread : TMainClientThread;
buffer : TIdBytes;
MainClient : TIdTCPClient;
inter : TIdCompressionIntercept;
IP : string;
begin
try
inter := TIdCompressionIntercept.Create();
inter.CompressionLevel := 9;
MainClient := TIdTCPClient.Create();
MainClient.Intercept := inter;
thread := TMainClientThread.Create(false);
thread.IP := '10.211.55.9';
thread.Port := 889;
thread.TCPClient := MainClient;
thread.Active := true;
thread.WaitFor();
if thread.ThreadTerminated then
WriteLn('Main Thread Terminated .[2]..');
except
WriteLn('error ..');
end;
WriteLn('Finished :( ');
end.