Mega Search
23.2 Million


Sign Up

Make a donation  
IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket

Hi, when i use my IdUDPServer to communicate with other pc's it works just 
fine but when i set it inactive and then back to active it won't communicate 
anymore. Anyone got a clue how to get it to communicate again?



Vote for best question.
Score: 0  # Vote:  0
Date Posted: 29-Nov-2007, at 11:36 PM EST
From: EricM
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
So i'm back to v8.0.25, it has help, it works.


"Remy Lebeau (TeamB)"  wrote in message 
news:4750afdf$1@newsgroups.borland.com...
>
> "EricM"  wrote in message
> news:4750ae6c@newsgroups.borland.com...
>
>> When i put a new idudpserver on a form it says that too when
>> i doubleclick the onread event. Is there more i gotta remove ?
>
> Did you remove all of the old Indy 8 files from your machine?
>
>
> Gambit
>
> 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 4-Dec-2007, at 3:06 AM EST
From: EricM
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
Ok, after moving the bpl files in the C6 dir to project-bpl i got rid of the 
bcb-startup message that i couldn't find some bpl's, i found out that i had 
to edit some existing projects to get them to compile, the UDP-onread event 
has different parameters than the old indy. I do miss some integrated help 
now though, i don't see any help files included...


"Remy Lebeau (TeamB)"  wrote in message 
news:4750afdf$1@newsgroups.borland.com...
>
> "EricM"  wrote in message
> news:4750ae6c@newsgroups.borland.com...
>
>> When i put a new idudpserver on a form it says that too when
>> i doubleclick the onread event. Is there more i gotta remove ?
>
> Did you remove all of the old Indy 8 files from your machine?
>
>
> Gambit
>
> 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Dec-2007, at 12:32 PM EST
From: EricM
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
I followed the instructions for installing v10, i checked my sys-dir and bcb 
dirs but i don't see any other old indy files.
Don't know if this matters but when i run the install batch i get some .rsp 
not found messages.


"Remy Lebeau (TeamB)"  wrote in message 
news:4750afdf$1@newsgroups.borland.com...
>
> "EricM"  wrote in message
> news:4750ae6c@newsgroups.borland.com...
>
>> When i put a new idudpserver on a form it says that too when
>> i doubleclick the onread event. Is there more i gotta remove ?
>
> Did you remove all of the old Indy 8 files from your machine?
>
>
> Gambit
>
> 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Dec-2007, at 3:55 AM EST
From: EricM
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
"EricM"  wrote in message 
news:4750ae6c@newsgroups.borland.com...

> When i put a new idudpserver on a form it says that too when
> i doubleclick the onread event. Is there more i gotta remove ?

Did you remove all of the old Indy 8 files from your machine?


Gambit 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Nov-2007, at 4:49 PM EST
From: Remy Lebeau \(TeamB\)
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
"EricM"  wrote in message 
news:4750ae6c@newsgroups.borland.com...

> I seem to have a strange error now 'Property and method
> IdUDPServer1UDPRead are not compatible.

The OnUDPRead has a different signature in Indy 10 than it did in Indy 8. 
you need to update your code accordingly.


Gambit 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Nov-2007, at 4:48 PM EST
From: Remy Lebeau \(TeamB\)
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
Thanks! That works for now. I seem to have a strange error now 'Property and 
method IdUDPServer1UDPRead are not compatible. When i put a new idudpserver 
on a form it says that too when i doubleclick the onread event. Is there 
more i gotta remove ?


"Remy Lebeau (TeamB)"  wrote in message 
news:47509a66$1@newsgroups.borland.com...
>
> "EricM"  wrote in message 
> news:47508de9$1@newsgroups.borland.com...
>
>> Well, i got v10 sort of installed now... all works except
>> the linker can't find the file indy.lib
>
> Your project is still referencing Indy 8.  Edit the .bpr file to remove 
> "indy.lib".  It should be referencing "IndySystemXX.lib", 
> "IndyCoreXX.lib", and "IndyProtocolsXX.lib" instead, where "XX" is your 
> version of BCB ("50" for BCB 5, "60" for BCB 6, etc).
>
>
> Gambit
> 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Dec-2007, at 1:44 AM EST
From: EricM
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
"EricM"  wrote in message 
news:47508de9$1@newsgroups.borland.com...

> Well, i got v10 sort of installed now... all works except
> the linker can't find the file indy.lib

Your project is still referencing Indy 8.  Edit the .bpr file to remove 
"indy.lib".  It should be referencing "IndySystemXX.lib", "IndyCoreXX.lib", 
and "IndyProtocolsXX.lib" instead, where "XX" is your version of BCB ("50" 
for BCB 5, "60" for BCB 6, etc).


Gambit 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Nov-2007, at 3:17 PM EST
From: Remy Lebeau \(TeamB\)
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
Well, i got v10 sort of installed now... all works except the linker can't 
find the file indy.lib, that's not weird; it's not even on my computer. 
Where did i took a wrong turn?


"Remy Lebeau (TeamB)"  wrote in message 
news:4750663a$1@newsgroups.borland.com...
>
> "EricM"  wrote in message
> news:47504bb0$1@newsgroups.borland.com...
>
>> Yes there is a Binding->Reset() method.
>
> That is not the type of resetting I was referring to earlier.
>
> Calling Reset() clears the Binding's IP and Port by default (you can set 
> the
> AResetLocal parameter to False to prevent that).  Doing so would allow the
> server to bind to a different local port when reactivated.  If that 
> happens,
> then of course it is not going to respond to data anymore as clients would
> still be sending data to the old port.
>
>> I use indy version 8.0.25.
>
> That is a VERY old version of Indy that is no longer supported.  You 
> should
> seriously consider upgrading to the latest Indy 9 or 10 snapshots.
>
>
> Gambit
>
> 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Nov-2007, at 11:25 PM EST
From: EricM
 
Re: IdUDPServer reconnection  
News Group: borland.public.cppbuilder.internet.socket
"EricM"  wrote in message 
news:47504bb0$1@newsgroups.borland.com...

> Yes there is a Binding->Reset() method.

That is not the type of resetting I was referring to earlier.

Calling Reset() clears the Binding's IP and Port by default (you can set the 
AResetLocal parameter to False to prevent that).  Doing so would allow the 
server to bind to a different local port when reactivated.  If that happens, 
then of course it is not going to respond to data anymore as clients would 
still be sending data to the old port.

> I use indy version 8.0.25.

That is a VERY old version of Indy that is no longer supported.  You should 
seriously consider upgrading to the latest Indy 9 or 10 snapshots.


Gambit 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Nov-2007, at 11:35 AM EST
From: Remy Lebeau \(TeamB\)