Article View: borland.public.cppbuilder.internet.socket
Article #601Re: IdUDPServer reconnection
From: EricM
Date: Fri, 30 Nov 2007 17:42
Date: Fri, 30 Nov 2007 17:42
38 lines
2248 bytes
2248 bytes
Like i wrote before it does work on startup but when set to inactive and back to active it doesn't respond anymore, that is the problem. Yes there is a Binding->Reset() method. I use indy version 8.0.25. "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:47504693$1@newsgroups.borland.com... > > "EricM" <buggy441@hotmail.com> wrote in message > news:474fce31$1@newsgroups.borland.com... > >> It uses the onUDPRead event to check for incoming data, if >> anything recognizable comes in it replies/acts on it. I know it >> doesn't work anymore because it doesn't receive any data. > > Then either it is not actually listening at all, or it is listening on a > different IP/Port than what the client is sending to. Have you verified > whether any actual data is arriving on the socket? You can use a packet > sniffer, such as Ethereal/Wireshark, for that. > >> I had no errors but when i put in the Reset method like you mentioned >> on disabling the IdUDPServer i get a 'no bindings specified' warning. > > There is no Reset() method. > >> The actual code is very simple, on program startup >> IdUDPServer1->Active=true; >> and from within the program it can be set to false/true by the user. > > Which version of Indy are you using? > > > Gambit > >
Technical Details
Message-ID:
<47504bb0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<474f3f15@newsgroups.borland.com> <474f4e8d$1@newsgroups.borland.com> <474fce31$1@newsgroups.borland.com> <47504693$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dbfa3bab2b8d0224 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "EricM" <buggy441@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <474f3f15@newsgroups.borland.com> <474f4e8d$1@newsgroups.borland.com> <474fce31$1@newsgroups.borland.com> <47504693$1@newsgroups.borland.com> Subject: Re: IdUDPServer reconnection Date: Fri, 30 Nov 2007 18:42:52 +0100 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 86.90.105.162 Message-ID: <47504bb0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1196444592 86.90.105.162 (30 Nov 2007 09:43:12 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail