Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 09-17-2003, 05:21 AM   #1
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default More on modules

I decided to add generic module support for events. Config entries will look something like this:

[Scripts]
MyScript = EXEC ..\scripts\myscript.exe
MyTclScript = TCL ..\scripts\myscript.itcl
MyModule = MYMODULE MyModuleParams

I will try to get most of the important headers cleaned up.. (~30 files)
darkone is offline  
Old 09-17-2003, 06:14 AM   #2
dasOp
Member
 
Join Date: Jan 2003
Posts: 91
Default

that looks kinda ambiguous to me.
Is Module an event in itself or just a listing to tell io to load said module?
dasOp is offline  
Old 09-17-2003, 07:39 AM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

I'm not quite sure what you meant with that. But I'll try to explain briefly how it works:

-- [Modules] -->
EventModule = ..\modules\MyEventModule.dll
-- daemon start-up -->
LoadModule(szModuleFileName);
GetProcAddress("EventInit");
EventInit(lpEventModule);
-- module initialization ->
lpEventModule->szName = "MYMODULE V0.9";
lpEventModule->lpInstallEvent("DoStuff", DoStuffProc);
-- [Scripts] -->
DOSTUFF = DoStuff
DONOTHING = DoStuff DoNothing

This allows you to add new interpreters (Php, java, asp) using modules..
darkone is offline  
Old 09-17-2003, 08:35 AM   #4
dasOp
Member
 
Join Date: Jan 2003
Posts: 91
Default

Ah, that sure makes sense.

So in essence I could also load my module, have that module spawn a thread upon init and Run a gui in that thread?
dasOp is offline  
Old 09-17-2003, 08:23 PM   #5
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Yep.. you can also use io's worker threads & io threads, if needed (hence BindCompletionPort & JobQueue functions) I might even allow use of message handler threads, as I've built nice API for those too
darkone is offline  
Old 09-18-2003, 03:04 AM   #6
dasOp
Member
 
Join Date: Jan 2003
Posts: 91
Talking

Sounds great! This makes shell shared memory kinda redundant though. Good riddance I say!
dasOp is offline  
Closed Thread

Tags
mymodule, mymoduleparams, scriptsmyscript.exe, scriptsmyscript.itcl, tcl

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:14 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)