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 05-29-2003, 10:29 PM   #1
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default Static structure changes - suggestions

Here's a suggestion for SHMEM_WHO structure (previous known as STATIC structure)

typedef struct _SHMEM_WHO
{
INT32 Uid; // -1 = Not logged in

DWORD dwFlags; // DEAD & HALT
TCHAR ServiceName[MAX_NAME]; // Name of service
TCHAR LastAction[64]; // User's last action

ULONG ulClientIp; // Client ip - host byte order
USHORT usClientPort; // Client port
TCHAR HostName[MAX_HOSTNAME]; // Hostname

TCHAR VirtualPath[_MAX_PWD + 1]; // Virtual path
LPTSTR RealPath; // Real path

time_t Login; // Login Time
DWORD dwIdleBegin; // Idle begin - GetTickCount()

BYTE Transfer; // (0 Inactive, 1 Upload, 2 Download, 3 List)
ULONG ulDataClientIp;
USHORT usDataClientPort;
sockaddr_in DataHost; // Client's data sockets (if any) internet address

TCHAR VirtualDataPath[_MAX_PWD + 1]; // File being transfered
LPTSTR RealDataPath; // Real data path

DWORD dwTransferBegin;
DWORD dwBytesTransfered; // Bytes transfered during interval
DWORD dwIntervalDuration; // Length of interval in Milliseconds
INT64 i64TotalBytesTransfered; // Total bytes transfered during transfer

} SHMEM_WHO, * PSHMEM_WHO;

Both real path's are in dynamic length... allocation will be similar to those used in datacopy examples for vfs context reading.
darkone is offline  
Old 05-30-2003, 08:19 AM   #2
Lunatik
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Nov 2002
Posts: 40
Default

Userfile?
GID?
Lunatik is offline  
Old 05-30-2003, 11:17 AM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Userfile can be read by sending another message in.
darkone is offline  
Old 05-30-2003, 05:30 PM   #4
dasOp
Member
 
Join Date: Jan 2003
Posts: 91
Default

Um, perhaps you should tell us if you have _UNICODE or not defined since you use TCHAR.. could create lots of mistakes, especially for beginner coders

If those are always unicode, then use WCHAR if the header is for public use to avoid anal people like me asking weird questios ;P
dasOp is offline  
Old 05-30-2003, 08:13 PM   #5
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

It's not enabled atm, as I haven't had time to go through all functions/variables nor can I test it at home... There will be two builds of io at some point: one with unicode & one without... but not in the foreseeable future
darkone is offline  
Closed Thread

Tags
download, dword, path, tchar, upload

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
download doesnt stop rvreeman General Discussion 4 02-09-2005 07:01 PM


All times are GMT -5. The time now is 10:14 AM.

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