Re: [Lazarus] UDP server

2021-01-11 Thread Corpsman via lazarus
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

2021-01-11 Thread Graeme Geldenhuys via lazarus

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

2021-01-11 Thread duilio foschi via lazarus
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