How to get a fqn hostname
Werner Modenbach
modenbach at alc.de
Mon Oct 8 12:47:25 BST 2001
On Montag, 8. Oktober 2001 13:15 Jan H. Schrewe wrote / Am Montag, 8. Oktober
2001 13:15 schrieb Jan H. Schrewe:
> Werner Modenbach wrote:
> > First of all sorry for the OT question.
> >
> > In programming a server using Qt classes I need to know the
> > fqn hostname of the system.
> > The QSocket method address() allways returns "0.0.0.0".
> > Going to gethostname(...) and getdomainname(...) delivers domainname "".
> > uname(...) also returns an empty domainname.
> >
> > Any hints? I've no idea where else to look for a solution.
> >
> > Thanks.
> >
> > - Werner -
>
> try gethostbyname(3) the function is called gethostbyaddress. I don't
> really know if this is the fqdn but it should be a starting point
>
For this to work I need to know the numerical address which I also don't have.
- Werner -
--
--------------------------------------------------------------
ALC Computertechnik GmbH
\_ \_ \_\_\_ Kaiserstr. 100
\_\_ \_ \_ D-52134 Herzogenrath
\_ \_ \_ \_ Germany
\_\_\_\_ \_ \_ Fon +49 2407 95810
\_ \_ \_ \_ Fax +49 2407 958139
\_ \_ \_\_\_\_ \_\_\_ http://www.alc.de
===========================================================
Werner Modenbach modenbach at alc.de
--------------------------------------------------------------
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list