5 procedure Bootstrap(url
:ansistring
);
8 uses sockets
,netdb
,uriparser
,NetAddr
;
12 procedure Init(url
:ansistring
);
15 procedure t
.Init(url
:ansistring
);
21 if uri
.port
=0 then uri
.port
:=80;
22 uri
.path
:=uri
.path
+uri
.document
;
23 writeln('Boot: ',uri
.host
,' ',uri
.port
,' ',uri
.path
,' ',uri
.params
);
24 if NetDB
.ResolveHostByName(uri
.host
,he
) then begin
25 addr
.data
.family
:=afInet
;
26 addr
.data
.inet
.addr
:=he
.Addr
;
27 addr
.data
.inet
.port
:=htons(uri
.port
);
28 writeln('Boot: ',string(addr
)+'/'+uri
.path
+'?'+uri
.params
);
29 end else writeln('fuck');
32 procedure Bootstrap(url
:ansistring
);