🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.sys.next
Article #49

Proplem: Hostname

#49
From: Tonio Seeger
Date: Wed, 22 Jul 1992 09:26
26 lines
1166 bytes
Hallo Leute,


Wie kann ein Programm den Namen des Hosts erfagen auf dem es gerade l uft?
Ich habe es auf folgende Art und Weisen probiert, bin aber nie zu den  
Hostnamen vorgedrungen !
(Der Name des Host ist ao_next1)

[NXApp hostName]  liefert eine NULLPointer

gethostent()	  aus <netdb.h>  liefert "localhost" ??

gethostname()	  aus <libc.h> liefert "tonio", also den UserNamen !?

Ist unsere NetInfo villeicht flasch konfiguriert, oder was mache ich  
falsch ?

Grusz Tonio

E-Mail: tonio@ao_next1.psych.th-darmstadt.de

Tonio Seeger
Fachbereich Psychologie
Hochschulstra e 1
TH-Darmstadt
6100 Darmstadt
Technical Details
Message-ID: <1992Jul22.092650.10748@infoserver.th-darmstadt.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!news

Show Full Headers
Complete Article Headers
Newsgroups: de.comp.sys.next
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!news
From: tonio@ao_next2.psych.th-darmstadt.de (Tonio Seeger)
Subject: Proplem: Hostname
Sender: news@infoserver.th-darmstadt.de (The Usenet-News System)
Message-ID: <1992Jul22.092650.10748@infoserver.th-darmstadt.de>
Date: Wed, 22 Jul 1992 09:26:50 GMT
Nntp-Posting-Host: ao_next1.psych.th-darmstadt.de
Organization: TH Darmstadt
Lines: 26