🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdTCPClient binding port

#4818
From: Willie
Date: Sun, 19 Dec 2004 17:44
29 lines
1508 bytes
Hello Remy:

Thanks for your reply.
But I got a socket error #10048 "address already in use".
How can I solve this problem?

for(int i=0; i<10; i++)
{
   IdTCPClient1->Host=SERVER_IP;
   IdTCPClient1->Port=SERVER_PORT;
   IdTCPClient1->BoundPort=CLIENT_PORT;
   IdTCPClient1->Connect(3000);
   IdTCPClient1->WriteLn("IdTCPClient1");
   IdTCPClient1->Disconnect();
}

Thank you very much.
Willie.


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ���g��l��s�D
:41c4b16c$1@newsgroups.borland.com...
>
> Set the BoundPort property before you call Connect().
>
>
> Gambit
>
>
Technical Details
Message-ID: <41c5bb26@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.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: <41c468df@newsgroups.borland.com> <41c4b16c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,46561e9631292c7f
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
From: "Willie" <Willie.nospam@nospam.pchome.com.tw>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41c468df@newsgroups.borland.com> <41c4b16c$1@newsgroups.borland.com>
Subject: Re: TIdTCPClient binding port
Date: Mon, 20 Dec 2004 01:44:17 +0800
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 211.20.227.67
Message-ID: <41c5bb26@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1103477542 211.20.227.67 (19 Dec 2004 09:32:22 -0800)
Path: arc1-ca.pugleaf.net!g2news1.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