Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-22-2004, 01:10 PM   #1
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Talking New core

Once again, I decided to do a partitial rewrite. This time I'm moving all blocking/cpu dependant operations out of io threads.

The most expensive operation executed within io threads is QueueJob(), which executes ~300k times per second

Ps. I've already compiled a test version... so this won't take long
darkone is offline   Reply With Quote
Old 01-22-2004, 01:34 PM   #2
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 273
Default

Sounds good alltho I dont understand much of it
odd is offline   Reply With Quote
Old 01-22-2004, 01:39 PM   #3
ReCaR
Junior Member
ioFTPD Foundation User
 
Join Date: May 2003
Posts: 14
Default

way to go !!!!!!!!!


(I think)

Thanks 4 spending so much time on ioFTPD D1, we really appreciate it !
ReCaR is offline   Reply With Quote
Old 01-22-2004, 05:59 PM   #4
NorLan
Senior Member
 
Join Date: Sep 2003
Posts: 110
Default

hmmmm d1 if you say so much about how good the code is - i come to the conclusion to buy a source code license one day

and if it is just to stick sheets of the printed code all around in my flat *gg
NorLan is offline   Reply With Quote
Old 01-22-2004, 11:05 PM   #5
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Thumbs up

sounds good to me, as long as it's improving and not degrading
mr_F_2 is offline   Reply With Quote
Old 01-23-2004, 07:20 AM   #6
_rage_ thegod
Member
 
Join Date: Jan 2004
Posts: 40
Default

way to go
_rage_ thegod is offline   Reply With Quote
Old 01-23-2004, 08:40 AM   #7
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Quote:
Originally posted by NorLan
hmmmm d1 if you say so much about how good the code is - i come to the conclusion to buy a source code license one day

and if it is just to stick sheets of the printed code all around in my flat *gg
I've learned over time, that best way to write code is to use several layers and store variables inside structures.

Layers:

1st layer: VOID TransmitPackages(LPSOCKET lpSocket, LPIOBUFFER lpBuffer, DWORD dwBuffers, VOID (*lpCallBack)(LPVOID, DWORD), LPVOID lpContext);
2nd layer: TranmistPackages_Update(), TranmistPackage_xxx(), TranmistPackage_Timer() (where xxx = package type)
3rd layer: QueueJob(), StartIoTimer(), StopIoTimer(), ioSend(), ioRecv(), ioReadFile(), ioWriteFile(), ioCloseSocket(), Allocate(), Free()
4th layer: Windows API calls

For variables, I usually use structures:

typedef struct _SOCKET
{
SOCKET Socket;
} SOCKET, *LPSOCKET;

Also, bitwise flags are a must They allow adding extra parameters without need of rewrite any of the high-level code
darkone is offline   Reply With Quote
Reply

Tags
executes, queuejob, threads, times

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 04:24 AM.

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