There won't be any connection/disconnection problems because you are using UDP. Calling connect on a UDP socket just sets up a default recipient for the packets you send, no actual connection occurs.
Dan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johnnie Norsworthy Sent: 01 August 2006 21:03 To: ICS support mailing Subject: Re: [twsocket] Converting from Indy - UDP Send - DNS caching On 8/1/06, Dan <[EMAIL PROTECTED]> wrote: > Why not open the socket at the start, then just call WSocket.SendStr when > you want to send something. I thought by leaving it open it might cause disconnection problems. Can I just leave it open all the time and call Send() as needed. It may be hours before it sends. I can just open and close it in my TDatamodule event code if that will work. > Yes, you need to add #13#10 if your receiver needs it, calling SendStr does > not add this for you. Thanks. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be