Article View: borland.public.cppbuilder.internet.socket
Article #4390Re: udp server
From: Jonathan Benedicto
Date: Sat, 19 Feb 2005 15:18
Date: Sat, 19 Feb 2005 15:18
28 lines
2498 bytes
2498 bytes
Well I tried to send data using UdpServer->SendBuffer using the properties of UdpServer->Bindings->Items[0] for the PeerIP and PeerPort, but when either when it tried to send data, or a short while after starting to send, the server threw a exception of connection reset of something like that. So, I changed my app so that it stored the ABinding parameter in the UdpRead event. And so the client intiates the communication and then the server can send data. Is this the way I should do it ? -- Jonathan "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:4217028d@newsgroups.borland.com... > > Just saying it does not work says nothing at all about the actual problem > you are having. > > That is your own responsibility to manage. The only time TIdUDPServer has > that information available is inside the OnUDPRead event. That is what > the > ABinding parameter is for - it describes the client that is currently > sending the data for the event. It is your responsibility to store that > information when needed. Also, it is your own responsibility to keep your > own list of known clients so that you can send them data when needed. > > > Gambit
Technical Details
Message-ID:
<421758c2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42113564$1@newsgroups.borland.com> <4211390f$3@newsgroups.borland.com> <4211fb7b$1@newsgroups.borland.com> <4212377f$2@newsgroups.borland.com> <42125194$1@newsgroups.borland.com> <421266e9@newsgroups.borland.com> <4216ce20$1@newsgroups.borland.com> <4217028d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f913eedcbd4070e3 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <incorrect@no.server> Newsgroups: borland.public.cppbuilder.internet.socket References: <42113564$1@newsgroups.borland.com> <4211390f$3@newsgroups.borland.com> <4211fb7b$1@newsgroups.borland.com> <4212377f$2@newsgroups.borland.com> <42125194$1@newsgroups.borland.com> <421266e9@newsgroups.borland.com> <4216ce20$1@newsgroups.borland.com> <4217028d@newsgroups.borland.com> Subject: Re: udp server Date: Sat, 19 Feb 2005 10:18:29 -0500 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 69.158.106.106 Message-ID: <421758c2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108826306 69.158.106.106 (19 Feb 2005 07:18:26 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail