Article View: borland.public.cppbuilder.internet.socket
Article #1429Re: "only one usage of each socket address is ..."
From: Remy Lebeau (TeamB)
Date: Tue, 16 Jan 2007 09:18
Date: Tue, 16 Jan 2007 09:18
29 lines
1816 bytes
1816 bytes
"Jon S. Berndt" <jsb@hal-pc.org> wrote in message news:45ac6634$1@newsgroups.borland.com... > Using BC++Builder 3.0 I have a simple app that uses a TServerSocket. > I've set the Port to 2000 (or whatever) at design time. But, I want to be > able to change the Port before I really start using the socket. Then do not set the TServerSocket's Active property to true at design-time. Set it to false instead, and then set it to true in code after you have changed the Port. > So, I Close() the socket That is unnecessary if the server is not activated in the first place. > change the Port, then Open() the socket. You did not say whether you are using the server in blocking or non-blocking mode. > I get the cryptic error: You set the Port to a value that is already in use somewhere else on the machine. Gambit
Technical Details
Message-ID:
<45ac9865$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45ac6634$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3f6afae9af730492 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: <45ac6634$1@newsgroups.borland.com> Subject: Re: "only one usage of each socket address is ..." Date: Tue, 16 Jan 2007 01:18:55 -0800 Lines: 31 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: 75.83.34.171 Message-ID: <45ac9865$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1168939109 75.83.34.171 (16 Jan 2007 01:18:29 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail