Article View: borland.public.cppbuilder.internet.socket
Article #4844Re: Local Address of Server Socket
From: hans galema
Date: Sat, 27 Nov 2004 09:35
Date: Sat, 27 Nov 2004 09:35
19 lines
1639 bytes
1639 bytes
Dev Support wrote: > Just scratching my head about how to get the local ip address of a server > socket??? For a listening TServerSocket->Socket there only is a local ip address available when there is a connection. A machine can have more local ip addresses. The socket only knows upon connection which networkcard or modem is used. Every card or modem mostly has a different ip-address. > ServerSocket1->Socket->LocalAddress.c_str()); > Produces the output of ... > > "0.0.0.0 Listening..." Upon connection take the Socket of the specific client. Hans.
Technical Details
Message-ID:
<41a84a5e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41a7cc27$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,da4f1b54b80c98d X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 27 Nov 2004 10:35:17 +0100 From: hans galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Local Address of Server Socket References: <41a7cc27$1@newsgroups.borland.com> In-Reply-To: <41a7cc27$1@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: <41a84a5e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101548126 129.125.201.248 (27 Nov 2004 01:35:26 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail