🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: indy9->indy10 udp migration (CB6->CB2007)

#298
From: Vladimir
Date: Fri, 21 Mar 2008 16:55
42 lines
2641 bytes
Remy Lebeau (TeamB) wrote:
> "Vladimir" <zhuchko@jinr.ru> wrote in message 
> news:47e3c513@newsgroups.borland.com...
> 
>> I tried to use the same code that I have for CB6-Indy9,
>> under CB6 the code works fine, but after migrating to the
>> CB2007->Indy9 the code accepts only one packet and
>> after that no more, after restarting of the program I can
>> accept again one packet from the client, another from the
>> second client and again no more from these clients.
> 
> Have you tried upgrading to the latest Indy 9 snapshot yet?  I suggest you 
> do that and see if the problem continues.
> 
>> What's the problem?
> 
> There is no way to answer that without seeing your actual code.  Perhaps you 
> are crashing the server?
> 
>> on the program exit I have error 10004 from the server
> 
> You should not be seeing that particular error.  It only occurs when 
> WSACancelBlockingCall() is called, which Indy never uses.
> 
>> only for Indy10
> 
> Which Indy are you actually using - 9 or 10?
> 
> 
> Gambit 
> 
> 
Actually I am using Indy9 + CB6, and for this version program works fine.

But I tested the CBuilder2007 (RAD 2007), and compiled application for 
Indy10 and got a problems. Really the application is very simple:
There are  TIdUDPClient and TIdUDPServer in the same program, client 
SendBuffer to the Server, the server has OnUDPRead event to get data, 
that's all, for the first time I have data, for the second time I have 
not. Error 10004 I have on the program close.

For indy9 this program is working.
Technical Details
Message-ID: <47e3e861$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder1.xlned.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <47e3c513@newsgroups.borland.com> <47e3df6b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ca5e00fadaa1144f
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 21 Mar 2008 19:55:03 +0300
From: Vladimir <zhuchko@jinr.ru>
Reply-To: zhuchko@jinr.ru
Organization: JINR
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: indy9->indy10 udp migration (CB6->CB2007)
References: <47e3c513@newsgroups.borland.com> <47e3df6b$1@newsgroups.borland.com>
In-Reply-To: <47e3df6b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 159.93.20.97
Message-ID: <47e3e861$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1206118497 159.93.20.97 (21 Mar 2008 09:54:57 -0700)
Lines: 42
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder1.xlned.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail