You are not logged in.
Pages: 1
Hello. I try use TAsyncServer. I'm start server. Client connected to server, but how to send message (Hello word) from server to client?
draft: https://gist.github.com/ms301/5d3fe01b6 … 05a0e7de07
Last edited by rareMax (2021-08-09 18:51:35)
Offline
Hello and welcome for your first post,
Please follow the forum rules and don't post code here directly in the forums: use a separated gist instead.
The TAsyncServer needs to override some methods to handle the incoming/outgoing messages.
You may check how TRtspOverHttpServer is implemented in the mormot.net.rtsphttp.pas unit.
It uses two TPostConnection/TRtspConnection classes, in which OnRead() redirect to the other end, using Sender.Write().
Offline
Thanks for the answer. The server successfully sent a hello world to the client.
(gist in first post has been updated)
Offline
Pages: 1