> i have a function
> var p:PHostEnt;
> p := GetHostByName(xxxName)); <<<<<<<<<<<----------------
> if Assigned (p) then
> Result := (byte(p^.h_addr^[0]) = 127) and (byte(p^.h_addr^[3]) in [2,4,5])
> //checking the ip address returned from the function

Just courious... why you are not using resolve routines from Synapse 
TBlockSocket class? It solving your typecast nightmare and using little 
different API (if it is possible) and is compatible with IPv6 too.

--
Lukas Gebauer.

E-mail: [email protected]
WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP 
Library



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to