~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to fcl/tests/testrhre.pp

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
program testrhre;
7
7
 
8
 
uses resolve,sysutils;
 
8
uses resolve,sysutils,Sockets;
9
9
 
10
10
Var
11
11
  I : integer;
12
12
  S : String;
13
 
  
14
 
  
 
13
 
 
14
 
15
15
begin
16
16
  If (ParamCount>0) then
17
17
    S:=Paramstr(1)
18
18
  else
19
 
    S:='212.224.143.202';  
 
19
    S:='212.224.143.202';
20
20
  With THostResolver.Create(Nil) do
21
21
    try
22
22
      If Not AddressLookup(S) then
29
29
        For I:=0 to AddressCount-1 do
30
30
          Writeln('Adress ',I:2,'     : ',HostAddrToStr(Addresses[I]));
31
31
        Writeln('Alias count   : ',AliasCount);
32
 
        For I:=0 to AliasCount-1 do 
 
32
        For I:=0 to AliasCount-1 do
33
33
          Writeln('Alias ',i:2,'  : ',Aliases[I]);
34
 
        end;    
 
34
        end;
35
35
    finally
36
36
       Free;
37
37
    end;