Article View: borland.public.cppbuilder.internet.socket
Article #598Re: IdUDPServer reconnection
From: EricM
Date: Fri, 30 Nov 2007 08:47
Date: Fri, 30 Nov 2007 08:47
30 lines
2129 bytes
2129 bytes
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. 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. 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. "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:474f4e8d$1@newsgroups.borland.com... > > "EricM" <buggy441@hotmail.com> wrote in message > news:474f3f15@newsgroups.borland.com... > >> 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. > > You need to be more specific. What exactly are you doing to communicate > from it? How do you know it is not communicating anymore? Are their any > errors? What does your actual code look like? Are you resetting the > Bindings collection before reactivating the server? > > > Gambit > >
Technical Details
Message-ID:
<474fce31$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<474f3f15@newsgroups.borland.com> <474f4e8d$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> Subject: Re: IdUDPServer reconnection Date: Fri, 30 Nov 2007 09:47:26 +0100 Lines: 32 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: <474fce31$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1196412465 86.90.105.162 (30 Nov 2007 00:47:45 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail