🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4743

Re: How to get and set IP Address programmatically

#4743
From: Hans Galema
Date: Fri, 24 Dec 2004 09:19
23 lines
1639 bytes
fengchyi wrote:
> How can I get and set network configuration of local computer by bc++ 
> programming.

You can get the IP-adress of one or all networkcards by using
gethostname() and gethostbyname(hostname)

> I try to set IP address by Program , 

Why would you ? For which networkcard ?

 > but I don't known relative
> reference in bc++ domain.

???? Please explain what that should be.

> If you have any advice , Please contact with me.
> 
>  my mail :fengchyi.chen@stt.com.tw 

Advises go here. As usual.

Hans.
Technical Details
Message-ID: <41cbdf55$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41cb8251@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,447b846124778889
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 24 Dec 2004 10:19:52 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: How to get and set IP Address programmatically
References: <41cb8251@newsgroups.borland.com>
In-Reply-To: <41cb8251@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <41cbdf55$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1103880021 129.125.201.248 (24 Dec 2004 01:20:21 -0800)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail