Go Back   FlashFXP Forums > >

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

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
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  
 

Tags
download, dword, path, tchar, upload


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 07:46 AM.

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