Indy TCP Client / Server con el cliente actuando como servidor
¿Cómo puede Indy'sTIdTCPClient
yTIdTCPServer
se utilizará en el siguiente escenario:
Client ---------- initate connection -----------> Server
...
Client <---------------command------------------- Server
Client ----------------response-----------------> Server
...
Client <---------------command------------------- Server
Client ----------------response-----------------> Server
El clienteinicia la conexión, pero actúa como un "servidor" (esperando comandos y ejecutándolos).
LosOnExecute
enfoque deTIdTCPServer
no funciona bien en este caso (al menos no estoy haciendo que funcione bien). ¿Cómo podría hacer esto
Espero que la pregunta sea lo suficientemente clara.