initial commit
[rofl0r-KOL.git] / KOLIndy / myindy / IdUDPClient.pas
blob056960f94e74c6c28d6cc76d5e8391712a913164
1 // 19-nov-2002
2 unit IdUDPClient;
4 interface
6 uses KOL,
7 IdUDPBase;
9 type
10 PIdUDPClient=^TIdUDPClient;
11 TIdUDPClient = object(TIdUDPBase)
12 protected
13 public
14 procedure Send(AData: string); overload;
15 procedure SendBuffer(var ABuffer; const AByteCount: integer); overload;
16 { published }
17 property Host: string read FHost write FHost;
18 property Port: Integer read FPort write FPort;
19 property ReceiveTimeout;
20 end;
22 function NewIdUDPClient:PIdUDPClient;
24 implementation
26 function NewIdUDPClient:PIdUDPClient;
27 begin
28 New( Result, Create );
29 end;
31 procedure TIdUDPClient.Send(AData: string);
32 begin
33 Send(Host, Port, AData);
34 end;
36 procedure TIdUDPClient.SendBuffer(var ABuffer; const AByteCount: integer);
37 begin
38 SendBuffer(Host, Port, ABuffer, AByteCount);
39 end;
41 end.