Article View: borland.public.cppbuilder.internet.socket
Article #4009Re: Socket problem setting port and connecting.
From: Egi2kaZz
Date: Tue, 26 Apr 2005 19:12
Date: Tue, 26 Apr 2005 19:12
40 lines
2130 bytes
2130 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:426e737e$1@newsgroups.borland.com...
>
> "Egi2kaZz" <egi2kas@gmail.com> wrote in message
> news:426e472d$1@newsgroups.borland.com...
>
>> thanx, that codes works fine, but every time y receive
>> file, I have to do :
>
> No, you don't.
>
>> if I don't inactive ClientSocket my progmam fails :(
>
> Please provide more details.
Well I'm using your code posted 2005 01 11 "please help me..socket file
transfer "
And if don't use:
try {
ReadStream(Socket, file);
}
__finally {
delete file;
ClientSocket1->Active=false; <----
}
Client's program crashes with no responding :(
I'm using 1024 port and stNonBlocking type..
>
>> and every time then I send file, My client has to disconnect and then
>> connect again?
>
> No, it does not. If it does, then your own code is messing it up.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<426e9298@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42638bd3$1@newsgroups.borland.com> <4263a52c@newsgroups.borland.com> <426abd97@newsgroups.borland.com> <426bf467$1@newsgroups.borland.com> <426e472d$1@newsgroups.borland.com> <426e737e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,87ef1514521c3f8d X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Egi2kaZz" <egi2kas@gmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <42638bd3$1@newsgroups.borland.com> <4263a52c@newsgroups.borland.com> <426abd97@newsgroups.borland.com> <426bf467$1@newsgroups.borland.com> <426e472d$1@newsgroups.borland.com> <426e737e$1@newsgroups.borland.com> Subject: Re: Socket problem setting port and connecting. Date: Tue, 26 Apr 2005 22:12:31 +0300 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 193.219.160.135 Message-ID: <426e9298@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114542744 193.219.160.135 (26 Apr 2005 12:12:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail