10-23-2024, 06:30 PM
Hi
Might sound like a daft question and you're probably thinking I'd be crazy to want to but I am working on a server that will be able to accept plugins to add extra functionality. As part of that, I would like to be able to run plugins as part of the main server program but also per user by creating a plugin loader inside the thread using the threads Data object to keep track of it.
I am using Max's TMxPluginLoader component / plugins.
What I would like to be able to do is for example, send a plugin to the server which has an FTP server for example or perhaps a SMTP server. I know that I could do that in the main program thread but I'd like to be able to also do this in a thread so that other users don't get access to the same plugin and mess things up.
Delphi logic and parent / descendant classes says this should be possible but as Indy is quite complex in nature server-wise, I thought I best check with the experts!
Might sound like a daft question and you're probably thinking I'd be crazy to want to but I am working on a server that will be able to accept plugins to add extra functionality. As part of that, I would like to be able to run plugins as part of the main server program but also per user by creating a plugin loader inside the thread using the threads Data object to keep track of it.
I am using Max's TMxPluginLoader component / plugins.
What I would like to be able to do is for example, send a plugin to the server which has an FTP server for example or perhaps a SMTP server. I know that I could do that in the main program thread but I'd like to be able to also do this in a thread so that other users don't get access to the same plugin and mess things up.
Delphi logic and parent / descendant classes says this should be possible but as Indy is quite complex in nature server-wise, I thought I best check with the experts!