Re: [Lazarus] UDP server
Oops! Sorry On Tue, Jan 12, 2021, 20:32 Bo Berglund via lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Mon, 11 Jan 2021 20:32:52 +0100, duilio foschi via lazarus > wrote: > > > >Peppe Polpo > > Please do not start a new thread by using an old thread and changing the > subject > and content! > It messes up message threading in newsreaders and email clients, which use > a > hidden "thread" identifier of sorts... > > > -- > Bo Berglund > Developer in Sweden > > -- > ___ > lazarus mailing list > lazarus@lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] UDP server
On Mon, 11 Jan 2021 20:32:52 +0100, duilio foschi via lazarus wrote: > >Peppe Polpo Please do not start a new thread by using an old thread and changing the subject and content! It messes up message threading in newsreaders and email clients, which use a hidden "thread" identifier of sorts... -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] UDP server
I use the lnet lib which can be easily installed with the online package manager works great with tcp and udp and has onReceived events ;) On 1/12/21 1:39 AM, Graeme Geldenhuys via lazarus wrote: > On 11/01/2021 7:32 pm, duilio foschi via lazarus wrote: >> I miss old ICS (Internet Component Suite) :) > Have you tried looking at Indy components? I've used them for years > with great success. > > > Regards, > Graeme -- Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie aktualisiert und erweitert. Da ist für jeden was dabei. -- Schütze deine Privatsphäre, nutze E-mail Verschlüsselung. Wie das geht steht z.B. hier : https://support.mozilla.org/en-US/kb/digitally-signing-and-encrypting-messages#w_installing-gpg-and-enigmail -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] UDP server
On 11/01/2021 7:32 pm, duilio foschi via lazarus wrote: > I miss old ICS (Internet Component Suite) :) Have you tried looking at Indy components? I've used them for years with great success. Regards, Graeme -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] UDP server
http://www.ararat.cz/synapse/doku.php/public:howto:udpserver this is the code suggested to write a UDP server with synapse. The code uses an infinite loop in a thread. I find this solution rather ugly. I would expect an event OnReceiveData that apparently is not there. The socket allows for a callback procedure of type procedure OnStatus(Sender: TObject; Reason: THookSocketReason; const Value: string); However it seems that this callback only works when the command RecvPacket or similar is issued and as far as the relative timeout does not elapse. Do I understand well? There is now way to use an event to collect data in synapse? An infinite loop is the only way? I miss old ICS (Internet Component Suite) :) Thank you Peppe Polpo -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus