🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing Ports in IdTCP?

#3781
From: Remy Lebeau (TeamB)
Date: Wed, 27 Apr 2005 18:34
24 lines
1653 bytes
"qyte" <gyte@vivodinet.gr> wrote in message
news:426f6c5a@newsgroups.borland.com...

>          if(connected)

You should not be trying to change ports while sockets are connected.
Changes will not take effect until the sockets are reconnected.

> what i want is to throw an exception if the port
> is already bound (for the server) or if the socket is
> active generrally.

Then simply throw your own exception if you are already connected.

> is works well with TSS/TCS but with indy (9) sockets no
> exception is thrown.

That is because Indy does not validate whether the sockets are connected or
not when changing the property values.  That does not mean, however, that
Indy actually uses the new values right away, because it does not.


Gambit
Technical Details
Message-ID: <426fdaaf@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <426f6c5a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ec5a26943f4067ee
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <426f6c5a@newsgroups.borland.com>
Subject: Re: Changing Ports in IdTCP?
Date: Wed, 27 Apr 2005 11:34:42 -0700
Lines: 26
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: <426fdaaf@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114626735 68.69.17.41 (27 Apr 2005 11:32:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail