D-Fan
2008-07-17 05:31:25 UTC
I have an Indy client application and an indy server application. There
are occasions that I want to send an unsolicited message from the server
to the client. This is done so that the client isn't constantly polling
the server to check the value of a flag. I want to send the client an
indicator that it can check for to see if the server has some data for
it. If the client finds that the flag is set then it will query the
server for the messages. My question is do I need to use a tcpclient
component on the server to do this unsolicited communication? It seems
like each client needs to have a tcpserver to receive this communication
since this message can be sent at any time. It doesn't seem feasible to
use the existing (primary) tcpserver component to send an unsolicited
message to the client PC.
are occasions that I want to send an unsolicited message from the server
to the client. This is done so that the client isn't constantly polling
the server to check the value of a flag. I want to send the client an
indicator that it can check for to see if the server has some data for
it. If the client finds that the flag is set then it will query the
server for the messages. My question is do I need to use a tcpclient
component on the server to do this unsolicited communication? It seems
like each client needs to have a tcpserver to receive this communication
since this message can be sent at any time. It doesn't seem feasible to
use the existing (primary) tcpserver component to send an unsolicited
message to the client PC.