Article View: borland.public.cppbuilder.internet.socket
Article #5563Re: Restricting Local IP in TServerSocket
From: Cagatay Undeger
Date: Fri, 06 Aug 2004 13:51
Date: Fri, 06 Aug 2004 13:51
37 lines
1953 bytes
1953 bytes
Yes, I used non-blocking one ?
Cagatay
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:4112c203$1@newsgroups.borland.com...
>
> "Cagatay Undeger" <cagatay@interaktif.gen.tr> wrote in message
> news:4112b291@newsgroups.borland.com...
>
> > I tried what you proposed but did not work.
>
> I've used it myself so I know that it does work.
>
> Further investigation shows that it only works when the server is used in
> blocking mode, though. Are you using non-blocking instead?
>
> > I created a class as follows:
>
> You don't need that much code. Just promote the existing property:
>
> class TMyServerSocket : public TServerSocket
> {
> public:
> __fastcall TMyServerSocket(TComponent *Owner) :
TServerSocket(Owner)
> {}
> __property Address;
> };
>
> TMyServerSocket * ServerSocket = new TMyServerSocket(NULL);
> ServerSocket->Address = ip;
>
>
> Gambit
>
>
Technical Details
Message-ID:
<41138cf8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41129f35$1@newsgroups.borland.com> <4112a709$1@newsgroups.borland.com> <4112b291@newsgroups.borland.com> <4112c203$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: "Cagatay Undeger" <cagatay@interaktif.gen.tr> Newsgroups: borland.public.cppbuilder.internet.socket References: <41129f35$1@newsgroups.borland.com> <4112a709$1@newsgroups.borland.com> <4112b291@newsgroups.borland.com> <4112c203$1@newsgroups.borland.com> Subject: Re: Restricting Local IP in TServerSocket Date: Fri, 6 Aug 2004 16:51:57 +0300 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 195.174.150.26 Message-ID: <41138cf8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091800312 195.174.150.26 (6 Aug 2004 06:51:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail