IPCSocket questions for terminal app

Greetings,

What would be the best way to use the IPC socket on a terminal app.

Creating the IPCSocket in the run event or adding the socket as control to the project and playing from there.

Is there a way to control dynamically the socket from the run event ?

We need to be able to encrypt and decrypt the data that passes trough the IPCSocket and to keep it safe as well from code side so on the XOJO docs and examples there is an example but unfortunately only for a desktop app, nothing related to terminal, I would see those more often used here as helpers.

Idea would be to have a Web app on Linux or desktop app on windows, Mac and the terminal part as helper app and communicate via IPC so we don’t need to use the shell for this part.

Any code, example would help a lot.

Thanks in advance.

You may need to run a main loop in your console app with calling DoEvents to process events for the IPC Socket.

And you may need to subclass IPCSocket and then encrypt in a send/write call and decrypt when reading.

[quote=497171:@Christian Schmitz]You may need to run a main loop in your console app with calling DoEvents to process events for the IPC Socket.

And you may need to subclass IPCSocket and then encrypt in a send/write call and decrypt when reading.[/quote]
Thanks Christian, I’ll try to do that way and see how it goes.