Article View: borland.public.cppbuilder.internet.socket
Article #5560Re: Restricting Local IP in TServerSocket
From: Remy Lebeau (TeamB)
Date: Thu, 05 Aug 2004 21:31
Date: Thu, 05 Aug 2004 21:31
16 lines
1555 bytes
1555 bytes
"Cagatay Undeger" <cagatay@interaktif.gen.tr> wrote in message news:41129f35$1@newsgroups.borland.com... > I would like to select only one of the local addresses for > listening on a port when more than one ethernet card and > ip exist on a single machine. Is it possible to do that using > TServerSocket? Yes. Derive a new class from TServerSocket, then you will have access to its protected Address property. That value is used to bind the server to a particular IP. Since it is not publically accessible, its value is usually empty, thus the server normally binds to all available addresses. Gambit
Technical Details
Message-ID:
<4112a709$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41129f35$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,275bb228249b0ef9 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <41129f35$1@newsgroups.borland.com> Subject: Re: Restricting Local IP in TServerSocket Date: Thu, 5 Aug 2004 14:31:46 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4112a709$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091741449 68.69.17.41 (5 Aug 2004 14:30:49 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail